Oct 07 2019 01:25 AM - edited Oct 07 2019 01:30 AM
Anyone found a way to prevent users to change from private to public.
There is a teams parameter called visibility and I assume it's the AccessType of the underlaying O365 group.
I would want to restrict the option in the UI for the owner to change this.
Nothing in the "CsTeamsClientConfiguration" and i can't find any policy which restrict this either.
Oct 07 2019 03:00 AM
Oct 07 2019 03:34 AM
SolutionApr 15 2020 06:01 AM - edited Apr 15 2020 06:03 AM
Alternatively, as there's no current configurable option to all enforce this. It could also be managed by a script. The script could be scheduled to run, or on demand as needed.
If you are using Teams for Education, Teams that are created using the Teams for Education template are created as public O365 groups but of type hidden membership. If your not using Teams for Education the second condition could be removed: -and ($_.HiddenGroupMembershipEnabled -ne 'True')
The script then goes through to identify the public O365 groups and change them to private instead of public.
# Find your public O365 groups. Exclude O365 groups which are public but of type hidden membership (used for Teams for Education).
Get-UnifiedGroup -ResultSize Unlimited | Where-Object {($_.AccessType -eq "Public") -and ($_.HiddenGroupMembershipEnabled -ne 'True')} | Set-UnifiedGroup –AccessType Private
Apr 16 2020 01:58 PM
Oct 07 2019 03:34 AM
Solution