Forum Discussion
Hide Groups membership not working / available?
- Feb 14, 2017
I asked the question and here's the situation.
If you want to hide the membership of a group, use PowerShell to create the group and specify the HiddenGroupMembershipEnabled switch as the New-UnifiedGroup cmdlet still supports it. However, because Set-UnifiedGroup does not (it will again in the future), you cannot change the hidden membership status again. That is, until Microsoft updates Set-UnifiedGroup...
I ran the following command and was still able to see the group members:
New-UnifiedGroup -DisplayName "Company All" -HiddenGroupMembershipEnabled:$true -Alias Company.All -PrimarySmtpAddress "Company@gitbit.org" -Name "Company All" -ConvertClosedDlToPrivateGroup
Maybe I missed a parameter but it didn't work for me.
I ended up creating a dynamic distribution group and hiding the actual distribution group:
- Create a new dynamic distribution group with a rule set for custom attribute 1 with a unique value of 'company'.
- On the distribution group (which contains the members I wish to hide), set the custom attribute 1 value to 'company'. Then hide the distribution group.
The user's can then send to the new dynamic distribution group.
I just created a new group with PowerShell and set the parameter... But I also set the group to be Private.
I suspect that the access type is the key because if you attempt to set the group to public, you get an error saying that a group with hidden membership must be private.
Did you really use the parameters that you quoted? I just tried them and PowerShell flagged a "property set cannot be resolved using the specified named parameters" error.
- John GruberJan 13, 2018Brass Contributor
Sorry I must have copied the wrong command. I just ran the following command:
New-UnifiedGroup -DisplayName "dev01" -Alias dev01 -HiddenGroupMembershipEnabled -AccessType Private
The list can be expanded in Outlook. I'm not worried about it. We created dynamic groups.
Thanks!
- TonyRedmondJan 13, 2018MVP
John,
Did you check with the account who created the group or an account that is not a member of the group?
Group members can see the membership. The account that creates a group is automatically a member and can therefore see the membership. People who are not a member cannot.
Dynamic groups cost extra because they need AAD premium licenses. Hence the reason why people like to avoid this feature. https://www.petri.com/microsoft-clarifies-premium-features-office-365-groups- AhmadSameemOct 06, 2022Copper Contributor
TonyRedmond I have an existing group and I would like to unhide memberships for the group. Do you think this is something possible existing groups?