Forum Discussion
Changing Access Type via PowerShell
Mmm...very weird, I have just pasted your PS code in the PowerShell console and I have not had any error...however I'm seeing a warning seeing that the comand execution finished correctly, but not configuration has been modified for every group on the tenant. If I run the Set-UnifiedGroup "Group Name" -AccessType "Public" it works without problems....and also to add, it's not enougt (I believe) to be Global Administrator to change this setting for each Group. You need to be an Owner in each Group...adding some more folks here TonyRedmond cfiessinger VasilMichev
- TonyRedmondNov 15, 2016MVP
I just tried it here and was able to run Set-UnifiedGroup to set the access type for a group from public to private and vice versa.
- Nov 15, 2016Ey Tony I have just verified that the change was finally done, so it seems it can take some time to propagate the change from public to private for a Group when using PowerShell...Is it correct you need to be a Group owner to change the status or any other property for the Group additionally to the Global Admin role?
- TonyRedmondNov 15, 2016MVP
A group owner can change group properties.
A global tenant administrator can change the properties of any group.
The change should happen immediately. Whether the UI of a client picks the change up and displays that change is entirely a different matter - clients do cache properties and it all depends on how often they check with AAD to ensure what the values of the properties actually are...