Renewing groups prevents them from expiring and ensures users retain access to resources. This helps organizations manage group life cycles efficiently while avoiding accidental loss of access. In Microsoft Graph PowerShell, group renewal can be performed using the Invoke-MgRenewGroup cmdlet.
Before using the Invoke-MgRenewGroup cmdlet, ensure the following:
Install-Module Microsoft.Graph -Scope CurrentUser
Group.ReadWrite.All, Directory.ReadWrite.All,
Run the following cmdlet in Microsoft Graph PowerShell to renew a Microsoft Entra group.
Invoke-MgRenewGroup
-GroupId <String>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The following are some essential parameters that can be used along with the Invoke-MgRenewGroup command:
| Parameters | Description |
|---|---|
| -Confirm | Prompts you for confirmation before running the cmdlet. |
| -GroupId | The unique identifier of the group. |
| -PassThru | Returns true when the command succeeds. |
| -Confirm | Prompts you for confirmation before running the cmdlet. |
| -WhatIf | Shows what will 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: