Get-EntraBetaLifecyclePolicyGroup
Retrieves the lifecycle policy object to which a group belongs.
Syntax
Get-EntraBetaLifecyclePolicyGroup
-GroupId <String>
[-Property <String[]>]
[<CommonParameters>]
Description
The Get-EntraBetaLifecyclePolicyGroup
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'
Get-EntraBetaLifecyclePolicyGroup -GroupId 'bbbbbbbb-1111-2222-3333-cccccccccccc'
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[] |
Aliases: | Select |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
System.String
Outputs
System.Object