How to delete a group from a lifecycle policy using PowerShell scripts

Administrators use Azure Active Directory (AD) groups to manage users and their permissions collectively. Using the group lifecycle policy, administrators can set an expiration period for the groups created. Owners of groups are expected to renew their groups as the expiration date approaches. Using this cmdlet, a group can be removed from a lifecycle policy in Azure AD.

Azure PowerShell syntax:

 Copied
Remove-AzureADMSLifecyclePolicyGroup
-Id <Id>
-GroupId <-GroupId>
[<CommonParameters>]
Click to copy entire script

where <Id> refers to the Id of the lifecycle policy object, and <GroupId> refers to the ID of the group in Azure AD.

About ManageEngine ADManager Plus

ManageEngine ADManager Plus is a unified Active Directory (AD), Microsoft 365, Exchange, and Google Workspace management and reporting solution. It comes with predefined management actions that can be executed at the click of a button and more than 200 reports to report on your AD comprehensively. ADManager Plus' automation capabilities allows you to automate mundane and routine AD tasks, associate workflows to them, and have them executed at a defined frequency. It also lets you securely delegate tasks to technicians and non-admin users. ADManager Plus can be integrated with enterprise applications to holistically manage your AD environment. To learn more about ADManager Plus, click here

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