Forum Discussion
Anonymous
Nov 15, 2016Changing Access Type via PowerShell
I need to change all Public Groups to Provate Groups. So I am attempting to run: Get-UnifiedGroup | Where {$_.AccessType -eq "Public"} | Set-UnifiedGroup -AccessType Private I keep getting th...
Nov 15, 2016
And more funny stuff: PowerShell says that the Group I changed to Public is Public...but the UI says it's Privated (Previous status)...^-^
TonyRedmond
Nov 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...
- Nov 15, 2016Thanks Tony, I was with the idea that you could need to be a Group owner :-)...it's always good to ask for confirmation. In regards of change in the groups status it could be I was having an issue on my tenant because I even did some In private sessions using the UI and the changes done in PowerShell were not reflected as expected