Set-AzureADMSAuthorizationPolicy
Updates an authorization policy.
Syntax
Set-AzureADMSAuthorizationPolicy
-Id <String>
[-BlockMsolPowerShell <Boolean>]
[-Description <String>]
[-DisplayName <String>]
[-EnabledPreviewFeatures <System.Collections.Generic.List`1[System.String]>]
[-GuestUserRoleId <String>]
[-PermissionGrantPolicyIdsAssignedToDefaultUserRole <System.Collections.Generic.List`1[System.String]>]
[<CommonParameters>]
Description
The Set-AzureADMSAuthorizationPolicy cmdlet updates an Azure Active Directory authorization policy.
Examples
Example 1: Update an authorization policy
PS C:\>Set-AzureADMSAuthorizationPolicy -Id authorizationPolicy -DisplayName "updated displayname" -Description "updated description" -PermissionGrantPolicyIdsAssignedToDefaultUserRole @("user-default-low","application-admin") -GuestUserRoleId "10dae51f-b6af-4016-8d66-8c2a99b929b3" -EnabledPreviewFeatures @("EnableGranularConsent")
Parameters
-BlockMsolPowerShell
Specifies whether the user-based access to the legacy service endpoint used by MSOL PowerShell is blocked or not.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Specifies the description of the authorization policy.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
Specifies the display name of the authorization policy.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnabledPreviewFeatures
Specifies the preview features enabled for private preview on the tenant.
Type: | List<T>[String] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GuestUserRoleId
Specifies the roletemplateId for the role that should be granted to guest user.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
Specifies the unique identifier of the authorization policy.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |