< Back
Update-DeviceManagement_RoleDefinitions
Post
NAME Update-DeviceManagement_RoleDefinitions
SYNOPSIS
Updates a "microsoft.graph.roleDefinition".
SYNTAX
Update-DeviceManagement_RoleDefinitions -roleDefinition <SwitchParameter> -roleDefinitionId <string> [-description
<string>] [-displayName <string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>]
[<CommonParameters>]
Update-DeviceManagement_RoleDefinitions -deviceAndAppManagementRoleDefinition <SwitchParameter> -roleDefinitionId
<string> [-description <string>] [-displayName <string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>]
[-rolePermissions <object[]>] [<CommonParameters>]
Update-DeviceManagement_RoleDefinitions -ODataType <string> -roleDefinitionId <string> [-description <string>]
[-displayName <string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>]
[<CommonParameters>]
DESCRIPTION
Updates a "microsoft.graph.roleDefinition" object in the "roleDefinitions" collection.
The Role Definitions.
Graph Call: PATCH ~/deviceManagement/roleDefinitions
PARAMETERS
-roleDefinitionId <string>
The ID for a "microsoft.graph.roleDefinition" object in the "roleDefinitions" collection.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-roleDefinition <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the "microsoft.graph.roleDefinition"
type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-displayName <string>
The "displayName" property, of type "Edm.String".
This property is on the "microsoft.graph.roleDefinition" type.
Display Name of the Role definition.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-description <string>
The "description" property, of type "Edm.String".
This property is on the "microsoft.graph.roleDefinition" type.
Description of the Role definition.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-rolePermissions <object[]>
The "rolePermissions" property, of type "microsoft.graph.rolePermission".
This property is on the "microsoft.graph.roleDefinition" type.
List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as
part of the rolePermission.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-isBuiltIn <bool>
The "isBuiltIn" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.roleDefinition" type.
Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-roleAssignments <object[]>
The "roleAssignments" property, of type "microsoft.graph.roleAssignment".
This property is on the "microsoft.graph.roleDefinition" type.
List of Role assignments for this role definition.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-deviceAndAppManagementRoleDefinition <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.deviceAndAppManagementRoleDefinition" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ODataType <string>
The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-@odata.type <string>
The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.
This is an alias of the ODataType parameter.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
The ID for a "microsoft.graph.roleDefinition" object in the "roleDefinitions" collection.
System.String
The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.
OUTPUTS
RELATED LINKS
GitHub Repository https://github.com/Microsoft/Intune-PowerShell-SDK
SYNOPSIS
Updates a "microsoft.graph.roleDefinition".
SYNTAX
Update-DeviceManagement_RoleDefinitions -roleDefinition <SwitchParameter> -roleDefinitionId <string> [-description
<string>] [-displayName <string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>]
[<CommonParameters>]
Update-DeviceManagement_RoleDefinitions -deviceAndAppManagementRoleDefinition <SwitchParameter> -roleDefinitionId
<string> [-description <string>] [-displayName <string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>]
[-rolePermissions <object[]>] [<CommonParameters>]
Update-DeviceManagement_RoleDefinitions -ODataType <string> -roleDefinitionId <string> [-description <string>]
[-displayName <string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>]
[<CommonParameters>]
DESCRIPTION
Updates a "microsoft.graph.roleDefinition" object in the "roleDefinitions" collection.
The Role Definitions.
Graph Call: PATCH ~/deviceManagement/roleDefinitions
PARAMETERS
-roleDefinitionId <string>
The ID for a "microsoft.graph.roleDefinition" object in the "roleDefinitions" collection.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-roleDefinition <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the "microsoft.graph.roleDefinition"
type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-displayName <string>
The "displayName" property, of type "Edm.String".
This property is on the "microsoft.graph.roleDefinition" type.
Display Name of the Role definition.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-description <string>
The "description" property, of type "Edm.String".
This property is on the "microsoft.graph.roleDefinition" type.
Description of the Role definition.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-rolePermissions <object[]>
The "rolePermissions" property, of type "microsoft.graph.rolePermission".
This property is on the "microsoft.graph.roleDefinition" type.
List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as
part of the rolePermission.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-isBuiltIn <bool>
The "isBuiltIn" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.roleDefinition" type.
Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-roleAssignments <object[]>
The "roleAssignments" property, of type "microsoft.graph.roleAssignment".
This property is on the "microsoft.graph.roleDefinition" type.
List of Role assignments for this role definition.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-deviceAndAppManagementRoleDefinition <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.deviceAndAppManagementRoleDefinition" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ODataType <string>
The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-@odata.type <string>
The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.
This is an alias of the ODataType parameter.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
The ID for a "microsoft.graph.roleDefinition" object in the "roleDefinitions" collection.
System.String
The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.
OUTPUTS
RELATED LINKS
GitHub Repository https://github.com/Microsoft/Intune-PowerShell-SDK