How to use Get-AzureADMSGroupLifecyclePolicy in Azure Active Directory

A group lifecycle policy is used by administrators to assign an expiration period for Azure Active Directory (Azure AD) groups. If a group expires, the owners of the group need to renew it within a period decided by the administrator. If the group is not renewed, it expires and is soft deleted. This can help manage inactive groups in the organization by removing them without any effort. The cmdlet Get-AzureADMSGroupLifecyclePolicy is used to retrieve the properties of a groupLifecyclePolicies object assigned to an Azure AD group.

Azure PowerShell syntax

 Copied
Get-AzureADMSGroupLifecyclePolicy
-Id <String>
[<CommonParameters>]

Note:If no parameters are mentioned after the cmdlet, all groupLifecyclePolicies object will be retrieved.

Click to copy entire script

Example:

The following is an example script for retrieving the properties of a groupLifecyclePolicies object assigned to an Azure AD group.

 Copied
Get-AzureADMSGroupLifecyclePolicy -ObjectId "<GroupID>"
Click to copy entire script

where <GroupID> denotes the ObjectID of the group for which the application roles are to be retrieved.

About ManageEngine ADManager Plus

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:

  • 360 degree user provisioning for Azure AD and other directory services like Active Directory and Google Workspace.
  • Pre-packaged reports with built-in management actions for increased productivity of administrators.
  • Automate routine tasks like stale group cleanup, bulk user provisioning, and more.
  • Reset passwords, unlock user accounts, and create custom reports in bulk swiftly without PowerShell scripts.
  • Approval-based workflow for Azure AD management.

Simplify Azure AD management and reporting with ADManager Plus

  Get 30-day free trial.
  • Embark on your script-free AD management, reporting, and automation journey with ADManager Plus.
  •  
  • By clicking 'Start your free trial now', you agree to processing of personal data according to the Privacy Policy.
  • Thanks
  • Your download should begin automatically in 15 seconds. If not, click here to download manually.

Related Powershell How-to Guides:

The one-stop solution toActive Directory Management and Reporting

Email Download Link