Get-EntraLifecyclePolicyGroup
Retrieves the lifecycle policy object to which a group belongs.
Syntax
Get-EntraLifecyclePolicyGroup
-GroupId <String>
[-Property <String[]>]
[<CommonParameters>]
Description
The Get-EntraLifecyclePolicyGroup
retrieves the lifecycle policy object to which a group belongs. Specify the -GroupId
parameter to get the lifecycle policy object to which a group belongs.
Examples
Example 1: Retrieve lifecycle policy object
Connect-Entra -Scopes 'Directory.Read.All'
$group = Get-EntraGroup -Filter "DisplayName eq 'Sales and Marketing'"
Get-EntraLifecyclePolicyGroup -GroupId $group.Id
Id AlternateNotificationEmails GroupLifetimeInDays ManagedGroupTypes
-- --------------------------- ------------------- -----------------
bbbbbbbb-1111-2222-3333-cccccccccccc admingroup@contoso.com 200 All
This example demonstrates how to retrieve lifecycle policy object by Id in Microsoft Entra ID.
-GroupId
- specifies the ID of a group.
Parameters
-GroupId
Specifies the ID of a group in Microsoft Entra ID.
Type: | System.String |
Aliases: | Id |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Property
Specifies properties to be returned
Type: | System.String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
System.String
Outputs
System.Object