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:
For AD User Management
For AD User Reporting
For GPO Management
For Password Management
For AD Group Management
For File Access Management
For AD Computer Management
For Office 365 Management
For Exchange Management