Administrators can set an expiration date for Azure Active Directory (Azure AD) groups by using a group lifecycle policy. If a group expires, its owners must renew it within a time frame set by the administrator. The group expires and is soft deleted if it is not renewed within the time period. The cmdlet Add-AzureADMSLifecyclePolicyGroup allows us to add an existing Azure AD group to an existing lifecycle policy.
The following is an example script to add an existing Azure AD group to an existing lifecycle policy:
where <lifecyclepolicyid> refers to the ObjectId of the groupLifecyclePolicies object and <GroupID> denotes the ObjectID of the group for which the application roles are to be retrieved.
ManageEngine ADManager Plus is a unified Active Directory (AD), Microsoft 365, Exchange, and Google Workspace management and reporting solution. With ADManager Plus, you can use the following features to improve your organizational workflow:
Entra ID user management
Entra ID reporting
Entra ID group management
Entra ID group reporting
Entra ID domain management
Entra ID contact management and reporting
Other Entra ID tasks