Edit

Share via


Get-AzureADMSPermissionGrantConditionSet

Get an Azure Active Directory permission grant condition set by id.

Syntax

GetQuery (Default)

Get-AzureADMSPermissionGrantConditionSet
    -PolicyId <String>
    -ConditionSetType <String>
    [<CommonParameters>]

GetById

Get-AzureADMSPermissionGrantConditionSet
    -PolicyId <String>
    -ConditionSetType <String>
    -Id <String>
    [<CommonParameters>]

Description

Get an Azure Active Directory permission grant condition set object by id.

Examples

Example 1: Get all permission grant condition sets that are included in the permission grant policy

PS C:\>Get-AzureADMSPermissionGrantConditionSet -PolicyId "policy1" -ConditionSetType "includes"

Example 2: Get all permission grant condition sets that are excluded in the permission grant policy

PS C:\>Get-AzureADMSPermissionGrantConditionSet -PolicyId "policy1" -ConditionSetType "excludes"

Example 3: Get a permission grant condition set

PS C:\>Get-AzureADMSPermissionGrantConditionSet -PolicyId "policy1" -ConditionSetType "includes" -Id "6b5e999b-0ba8-4186-a106-e0296c1c4358"

Parameters

-ConditionSetType

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-Id

The unique identifier of an Azure Active Directory permission grant condition set object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetById
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-PolicyId

The unique identifier of an Azure Active Directory permission grant policy object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
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.

Inputs

string

string

string

Outputs

Microsoft.Open.MSGraph.Model.PermissionGrantConditionSet

Notes

See the migration guide for Get-AzureADMSPermissionGrantConditionSet to the Microsoft Graph PowerShell.