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...
Sohail Merchant
Jan 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).",
TonyRedmond
Jan 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