Set-AzureADMSRoleDefinition

Update a role definition.

Syntax

Set-AzureADMSRoleDefinition
   -Id <String>
   [-Description <String>]
   [-DisplayName <String>]
   [-ResourceScopes <System.Collections.Generic.List`1[System.String]>]
   [-IsEnabled <Boolean>]
   [-RolePermissions <System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.RolePermission]>]
   [-TemplateId <String>]
   [-Version <String>]
   [<CommonParameters>]

Description

The Set-AzureADMSRoleDefinition cmdlet sets a role definition in Azure Active Directory (AD).

Examples

Example 1

PS C:\> Set-AzureADMSRoleDefinition -ID c466024e-f789-4409-a897-d220916814b1 -DisplayName 'UpdatedDisplayName'

This command updates the specified role definition in Azure AD.

Parameters

-Description

Specifies a description for the role definition.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisplayName

Specifies a display name for the role definition.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Id

Specifies Id for the role definition.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-IsEnabled

Specifies whether the role definition is enabled.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceScopes

Specifies the resource scopes for the role definition.

Type:System.Collections.Generic.List`1[System.String]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RolePermissions

Specifies permissions for the role definition.

Type:System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.RolePermission]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TemplateId

Specifies template id for the role definition.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Version

Specifies version for the role definition.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Outputs

Object