A group life cycle policy ensures that only relevant and active groups exist in your organization. It also reduces the risk of orphaned or abandoned groups. Microsoft Graph PowerShell helps you update policies using the Update-MgGroupLifecyclePolicy cmdlet. However, this approach requires strong technical knowledge. ADManager Plus offers a script-free, user friendly interface to help you manage Microsoft Entra groups and group life cycle policies.
Here's how you can update various group properties with ADManager Plus:
Before using the cmdlet, ensure that the Microsoft Graph PowerShell module is installed. If not, install it using this script:
Install-Module Microsoft.Graph -Scope CurrentUser
The user executing this cmdlet should have the following permission:
Group.ReadWrite.All
Run the following cmdlet in Microsoft Graph PowerShell to update a group life cycle policy:
Update-MgGroupLifecyclePolicy
-GroupLifecyclePolicyId <String>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-AlternateNotificationEmails <String>]
[-GroupLifetimeInDays <Int32>]
[-Id <String>]
[-ManagedGroupTypes <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The following are some essential parameters that can be used along with the Update-MgGroupLifecyclePolicy command:
| Parameters | Description |
|---|---|
| -GroupLifecyclePolicyId | The unique identifier of groupLifecyclePolicy. |
| -GroupId | The unique identifier of the group. |
| -Id | The unique identifier for an entity. |
| -Confirm | Prompts you for confirmation before running the cmdlet. |
| -WhatIf | Shows what would happen if the cmdlet runs. |
ADManager Plus, an identity governance and administration solution with comprehensive Microsoft Entra ID management and reporting capabilities, simplifies complex admin tasks from a single, user-friendly console: