Get-EntraLifecyclePolicyGroup
Retrieves the lifecycle policy object to which a group belongs.
Syntax
Default (Default)
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.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Id |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Property
Specifies properties to be returned
Parameter properties
Type: | System.String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Select |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.