Set group lifecycle policy action allows to set an expiration period for the group, after which a group expires. When a group reaches its expiration, owners of the group are required to renew their group within a time interval defined by the administrator.
Example of Set group lifecycle policy configuration on the current site
For more information about Action Builder read Action Builder introduction article.
Note 1: In order to use the Set group lifecycle policy action in Scheduled/Triggered Actions skybow Groups Connector has to be approved by a tenant administrator and site has to be added to Approved sites list before this action can be used. Learn more about skybow M365 Connectors.
Note 2: When you deploy the solution to another SharePoint tenant, it requires approval of skybow Groups Connector on the deployment tenant as well.
Note 3: Microsoft Entra ID P1 or P2 licenses are required for configuring the M365 group expiration policy. However, it is not necessary to assign those licenses to all the users of the group to which the policy is going to be applied.
To configure the action Set group lifecycle policy additional properties should be specified:
Configuration
Property | Required | Type | Description |
Group lifetime | no | String |
Specify the number of days before a group expires and needs to be renewed. Note: Amount of days should be greater then 30 |
Email contact for groups | no | String |
In a case the group doesn't have owners, specify email address or an expression to be evaluated as an email address of the contact for group. Email addresses should be separated with ',' if you add more than one contact. |
To which groups apply policy
|
no | String | The group type for which the expiration policy applies. Possible options are All, Selected, None or Custom value (expression based value, the result should return valid value of possible options). |
Availability
Modern Forms | List Actions | Scheduled/Triggered Actions |
- | - | ✓ |
Output
Output Parameter | Type | Description |
PolicyID | String | Returns a ID of the policy. |
Lifetime | String | Returns a group lifetime |
EmailsToInform | String | Returns the email(s) of the group's contact |