Forum Discussion
Office 365 Group Expiration and SharePoint Group Connected sites
We have a growing number of self-provisioned Office 365 groups. We also have a list of admin provisioned sites. We want to manage the growth of the self-provisioned using Office 365 Group Expiration Policies. What I can't get clear is, will these Group Expiration Policies apply to both self-provisioned and admin provisioned sites the same way? Or can we exclude sites we've created from expiring?
1 Reply
- CarstenBIron Contributor
You define the policy and can add them to all, none or selected groups. This means as soon as a Office 365 group is created (from all those self-service buttons), the underlying group is added if this is set to all.
We managed it several times now in projects to define the policy for selected groups and create processes with Forms/Flow/Approval/Azure Functions (PowerShell) to distinguish permanent ("admin") groups from those adhoc groups that people can create on their own. Therefore we run a script every night which puts the new groups that are not adhoc-groups into the new policy as a Azure Function with a timer trigger. Adhoc groups are put into the selected groups for expiry, other groups are not afected by this (and miss also the default naming convention as the PowerShell runs with appropiate rights to overrule the policies).