Remove-EntraPermissionGrantConditionSet

Delete a Microsoft Entra ID permission grant condition set by ID.

Syntax

Remove-EntraPermissionGrantConditionSet
      -ConditionSetType <String>
      -Id <String>
      -PolicyId <String>
      [<CommonParameters>]

Description

Delete a Microsoft Entra ID permission grant condition set object by ID.

Examples

Example 1: Delete a permission grant condition set from a policy

Connect-Entra -Scopes 'Policy.ReadWrite.PermissionGrant'
$permissionGrantPolicyId = 'policy1'
$PermissionGrantConditionSetId = '2bbbbbb2-3cc3-4dd4-5ee5-6ffffffffff6'
$params = @{
    PolicyId = $permissionGrantPolicyId
    ConditionSetType = 'excludes'
    Id = $PermissionGrantConditionSetId
}
Remove-EntraPermissionGrantConditionSet @params

This example demonstrates how to remove the Microsoft Entra ID permission grant condition set by ID.

  • -PolicyId parameter specifies the unique identifier of a permission grant policy.
  • -ConditionSetType parameter indicates whether the condition sets are included in the policy or excluded.
  • -Id parameter specifies the unique identifier of a permission grant condition set object.

Parameters

-ConditionSetType

The value indicates whether the condition sets are included in the policy or excluded.

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

-Id

The unique identifier of a Microsoft Entra ID permission grant condition set object.

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

-PolicyId

The unique identifier of a Microsoft Entra ID permission grant policy object.

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

Inputs

String