Forum Discussion
Sohail Merchant
Dec 01, 2017Copper 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/Closure'. I noticed that AAD has group expiration option, but it seem to set the policy for all or selected group not per group/site collection.
Scenario: if we have a site/group which needs to be closed in 1 year time and another group close in 2 years' time the expiration option doesn't seem to address this. Is there a way to achieve this?
10 Replies
Sort By
I believe this is something you have to do with the Expiring Groups feature coming to Groups....adding here TonyRedmond cfiessinger
- cfiessinger
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 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 MerchantCopper 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).",