Add group to lifecycle policy action allows to add specifiс group to lifecycle policy. This action will add a group to the lifecycle policy only if the managedGroupTypes property of groupLifecyclePolicy is set to Selected.
Example of Add group to 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 Add group to 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 Add group to lifecycle policy additional properties should be specified:
Configuration
Property | Required | Type | Description |
Group | yes | String |
Specify the name of the Id of the group you want to add to lifecycle policy. |
Availability
Modern Forms | List Actions | Scheduled/Triggered Actions |
- | - | ✓ |
Output
Output Parameter | Type | Description |
GroupID | String | Returns the id of the group that was added to the lifecycle policy |
PolicyID | String | Returns the id of the lifecycle policy |
EmailsToInform | String | Returns the email(s) of the group's contact |
Lifetime | String | Returns the group lifetime |