Get-EntraPermissionGrantPolicy
Gets a permission grant policy.
Syntax
Get-EntraPermissionGrantPolicy
[-Property <String[]>]
[<CommonParameters>]
Get-EntraPermissionGrantPolicy
-Id <String>
[-Property <String[]>]
[<CommonParameters>]
Description
The Get-EntraPermissionGrantPolicy
cmdlet gets a Microsoft Entra ID permission grant policy.
Examples
Example 1: Get all permission grant policies
Connect-Entra -Scopes 'Policy.Read.PermissionGrant'
Get-EntraPermissionGrantPolicy
DeletedDateTime Description
--------------- -----------
Includes all application permissions (app roles), for all APIs, for any client application.
Includes all chat resoruce-specific application permissions, for all APIs, for any client application.
(Deprecated) Includes all team resource-specific application permissions, for all APIs, for any client application.
This command gets all the permission grant policies.
Example 2: Get a permission grant policy by ID
Connect-Entra -Scopes 'Policy.Read.PermissionGrant'
Get-EntraPermissionGrantPolicy -Id 'testtenant-sampleapp-permissions'
DeletedDateTime Description DisplayName Id
--------------- ----------- ----------- --
Permissions for sample app in test tenant Sample app permissions testtenant-sampleapp-permissions
This command gets the specified permission grant policy.
Id
parameter specifies the permission grant policy ID.
Parameters
-Id
Specifies the unique identifier of the permission grant policy.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Property
Specifies properties to be returned.
Type: | System.String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |