Add-EntraLifecyclePolicyGroup

Adds a group to a lifecycle policy

Syntax

Add-EntraLifecyclePolicyGroup
    -GroupId <String>
    -Id <String> 
   [<CommonParameters>]

Description

The Add-EntraLifecyclePolicyGroup cmdlet adds a group to a lifecycle policy in Microsoft Entra ID.

Examples

Example 1: Add a group to the lifecycle policy

Connect-Entra -Scopes 'Directory.ReadWrite.All'
Add-EntraLifecyclePolicyGroup -Id '2bbbbbb2-3cc3-4dd4-5ee5-6ffffffffff6' -groupId 'hhhhhhhh-3333-5555-3333-qqqqqqqqqqqq'

This command adds a group to a Microsoft Lifecycle Policy. The -Id parameter specifies the ID of the Lifecycle Policy to which the group should be added. The -groupId parameter specifies the ID of the group to be added to the Lifecycle Policy.

Parameters

-GroupId

Specifies the ID of a group in Microsoft Entra ID.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Id

Specifies the ID of the lifecycle policy object in Microsoft Entra ID.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

Outputs

System.Object