New-EntraPermissionGrantPolicy
Creates a permission grant policy.
Syntax
Default (Default)
New-EntraPermissionGrantPolicy
-Id <String>
[-DisplayName <String>]
[-Description <String>]
[<CommonParameters>]
Description
The New-EntraPermissionGrantPolicy
cmdlet creates a Microsoft Entra ID permission grant policy.
Examples
Example 1: Create a permission grant policy
Connect-Entra -Scopes 'Policy.ReadWrite.PermissionGrant'
New-EntraPermissionGrantPolicy -Id 'my_new_permission_grant_policy_id' -DisplayName 'MyNewPermissionGrantPolicy' -Description 'My new permission grant policy'
DeletedDateTime Description DisplayName Id
--------------- ----------- ----------- --
My new permission grant policy MyNewPermissionGrantPolicy my_new_permission_grant_policy_id
This example creates new permission grant policy in Microsoft Entra ID.
-Id
parameter specifies the unique identifier of the permission grant policy.-DisplayName
parameter specifies the display name for the permission grant policy.-Description
parameter specifies the description for the permission grant policy.
Parameters
-Description
Specifies the description for the permission grant policy.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisplayName
Specifies the display name for the permission grant policy.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Id
Specifies the unique identifier of the permission grant policy.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
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.