From the document https://learn.microsoft.com/en-us/office365/enterprise/manage-office-365-groups-with-powershell#create-classifications-for-office-groups-in-your-organization, we can understand how we can add classification to Office 365 groups, and also how to make one classification as default.
Is there any way to restrict owners from changing the classification after the group has been created? As per I see in our tenant users can easily go to Edit group from their Outlook settings and change the classification. But this is the thing which we want to restrict. Please let me know if anyone has any solution.
Thanks in Advance!
I got a resolution for my requirement.
To change property bag, we can use CSOM as below: $allProperties = $web.allproperties $ctx.Load($web) $ctx.Load($allProperties) $ctx.ExecuteQuery() $allProperties["classification"] = 'Property' $web.Update() $ctx.ExecuteQuery()
Similarly, for communications site, instead of changing group classification, we can change in site collection classification (Site class of site collection) - as the group does not exist.