Forum Discussion

Sohail Merchant's avatar
Sohail Merchant
Brass Contributor
Dec 01, 2017

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

    • TonyRedmond's avatar
      TonyRedmond
      MVP

      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 Merchant's avatar
        Sohail Merchant
        Brass 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).", 

Resources