Forum Discussion
Disable "Leave Group" functionality in Office 365 Groups
Make the group private. Only group owners can add or remove members from private groups.
- mattias-skogJan 16, 2018Iron Contributor
But still, even if the group is private, the user has the option to leave the group at anytime if he wants to? I haven't tested it myself but at least the option is there in all applications (Outlook, Teams etc)...
- cfiessingerJan 16, 2018
Microsoft
Can you please explain the use case/scenario to force users to "stay"?
(note you could use dynamic membership to achieve this)
- jlackmanMar 27, 2022Copper Contributor
cfiessinger Here is another use case. In trying to dig out of past bad practices, we want every user to be in a Departmental TEAM. We want that TEAM to be one of the primary places that a user goes to look for and get to their departmental Document Library. (no intranet, no SharePoint intranet, currently no hierarchy to guide users to files.
In this scenario, if a user just "leaves" their departmental TEAM, then in a month they'll be asking "how do I get to my department files...."
JL
- TonyRedmondJan 16, 2018MVP
Yeah, that's true. The pesky leave group option appears in OWA and Outlook. Distribution groups allow owners to dictate that members need permission to leave... I guess I had a brain fart and assumed that the work Microsoft did for distribution group migration made this feature available to Office 365 Groups, but it doesn't. You can only insist on approval when people ask to join the group.
See New-UnifiedGroup documentation:
ConvertClosedDlToPrivateGroup
Optional
System.Management.Automation.SwitchParameter
The ConvertClosedDlToPrivateGroup switch specifies whether to migrate the closed distribution group to a private Office 365 Group. You don't need to specify a value with this switch.
By default, this switch is always applied when migrating closed distribution groups, and will eventually be deprecated.
If the distribution group has the value
Closedfor the MemberDepartRestriction or MemberJoinRestriction parameters, the distribution group will always be migrated to a private Office 365 Group. For open distribution groups, the migrated Office 365 Group is always public, not private.- TonyRedmondJan 16, 2018MVP
But (second thought)...
For groups where you wanted to "protect" group membership, you could write some PowerShell to run in the background and validate group memberships. Paul Cunningham posted an example at https://practical365.com/collaboration/groups/powershell-script-generate-reports-groups-office-365/
It would then be easy to find when users left a "protected" group and add them back again.