< Back
New-DeviceManagement_RoleDefinitions
Post
NAME New-DeviceManagement_RoleDefinitions
SYNOPSIS
Creates a "microsoft.graph.roleDefinition" object.
SYNTAX
New-DeviceManagement_RoleDefinitions -roleDefinition <SwitchParameter> [-description <string>] [-displayName
<string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>] [<CommonParameters>]
New-DeviceManagement_RoleDefinitions -deviceAndAppManagementRoleDefinition <SwitchParameter> [-description
<string>] [-displayName <string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>]
[<CommonParameters>]
New-DeviceManagement_RoleDefinitions -ODataType <string> [-description <string>] [-displayName <string>]
[-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>] [<CommonParameters>]
DESCRIPTION
Adds a "microsoft.graph.roleDefinition" object to the "roleDefinitions" collection.
The Role Definitions.
Graph call: POST ~/deviceManagement/roleDefinitions
PARAMETERS
-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? true (ByPropertyName)
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? true (ByPropertyName)
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? true (ByPropertyName)
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? true (ByPropertyName)
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? true (ByPropertyName)
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 "displayName" property, of type "Edm.String".
This property is on the "microsoft.graph.roleDefinition" type.
Display Name of the Role definition.
System.String
The "description" property, of type "Edm.String".
This property is on the "microsoft.graph.roleDefinition" type.
Description of the Role definition.
System.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.
System.Boolean
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.
System.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.
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
Creates a "microsoft.graph.roleDefinition" object.
SYNTAX
New-DeviceManagement_RoleDefinitions -roleDefinition <SwitchParameter> [-description <string>] [-displayName
<string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>] [<CommonParameters>]
New-DeviceManagement_RoleDefinitions -deviceAndAppManagementRoleDefinition <SwitchParameter> [-description
<string>] [-displayName <string>] [-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>]
[<CommonParameters>]
New-DeviceManagement_RoleDefinitions -ODataType <string> [-description <string>] [-displayName <string>]
[-isBuiltIn <bool>] [-roleAssignments <object[]>] [-rolePermissions <object[]>] [<CommonParameters>]
DESCRIPTION
Adds a "microsoft.graph.roleDefinition" object to the "roleDefinitions" collection.
The Role Definitions.
Graph call: POST ~/deviceManagement/roleDefinitions
PARAMETERS
-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? true (ByPropertyName)
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? true (ByPropertyName)
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? true (ByPropertyName)
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? true (ByPropertyName)
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? true (ByPropertyName)
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 "displayName" property, of type "Edm.String".
This property is on the "microsoft.graph.roleDefinition" type.
Display Name of the Role definition.
System.String
The "description" property, of type "Edm.String".
This property is on the "microsoft.graph.roleDefinition" type.
Description of the Role definition.
System.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.
System.Boolean
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.
System.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.
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