Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
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
-Property
Specifies properties to be returned
Parameter properties
| Type: | System.String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | Select |
Parameter sets
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.
Inputs
System.String
Outputs
System.Object
Feedback
Was this page helpful?
