Forum Discussion
Sohail Merchant
Dec 01, 2017Brass Contributor
Office 365 Groups and Site Policy / Group Life Cycle
What would be the best way to create site policy if team site was created through Office 365 Groups? Considering there is no option available under site setting for 'Site Policy' or 'Site Deletion/C...
Dec 03, 2017
I believe this is something you have to do with the Expiring Groups feature coming to Groups....adding here TonyRedmond cfiessinger
- cfiessingerDec 04, 2017
Microsoft
Here is the documentation on the upcoming group expiry feature: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-groups-lifecycle-azure-portal - TonyRedmondDec 03, 2017MVP
The group expiration policy can be used to set an expiry date on selected groups. In this case, you'd set the expiration period (say, a year), and simply not renew the group when Office 365 notifies you that the group is expiring. When the expiry period lapses, Office 365 will remove the group.
See https://www.petri.com/group-expiration-policy-preview for more.
- Sohail MerchantJan 02, 2018Brass Contributor
Thanks for this. I don't think this would meet the requirement for example, I have Project A and Project B sites. Project A needs to be closed on 15 December 2018 and Project B on 20 June 2018. If I create a policy with a custom date for 15 December 2018, Project B wont receive a renewal email until 20 November whereas this group should have been closed by 20 June. Hope this make sense!
This was possible through Site Policy, but apparently group expiration can only allow you to set one custom date and only one policy per tenant. Graph API seems to suggest that you can create multiple policies https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/grouplifecyclepolicy_addgroup
But I get an error: "message": "Error in validating lifecycle manangement policy. Error: Tenant already has maximum allowed 1 policy(s).",
- TonyRedmondJan 03, 2018MVP
If you simply want to close down a group at a particular time, you can do this with PowerShell. Once you are happy that the Project is done, you run a script to:
1. Remove all users from the group membership except an administrator, who remains the group owner.
2. Hide the group from address lists.
3. Make sure that the group is private.
The group is now in a hidden, one-member only state. The content remains discoverable and available if need be. You could combine this process by assigning classification labels to the content that are event-driven so that Office 365 will remove the content after another period passes. For example, the project closes in January 2018 and you retain the information for another year. In January 2019., the content is removed from Office 365...
TR