How to create an Azure AD groupLifecyclePolicy 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. The cmdlet below can be used to create an Azure AD groupLifecycle policy.

Azure PowerShell syntax

 Copied
New-AzureADMSGroupLifecyclePolicy
-GroupLifetimeInDays <Days>
-ManagedGroupTypes <Type>
-InformationAction <email>
[<CommonParameters>]
Click to copy entire script

where <Days> specifies the number of days a group can remain before it has to be renewed, <Type> determines to what groups this policy will apply, and <email> refers to email addresses that will receive notification emails for groups without owners.

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.

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