< Back

New-DeviceManagement_RoleAssignments

Sat Jan 18, 2020 12:25 pm

NAME New-DeviceManagement_RoleAssignments



SYNOPSIS

Creates a "microsoft.graph.deviceAndAppManagementRoleAssignment" object.





SYNTAX

New-DeviceManagement_RoleAssignments [-description <string>] [-displayName <string>] [-members <string[]>]

[-resourceScopes <string[]>] [-roleDefinition <object>] [<CommonParameters>]



New-DeviceManagement_RoleAssignments -ODataType <string> [-description <string>] [-displayName <string>] [-members

<string[]>] [-resourceScopes <string[]>] [-roleDefinition <object>] [<CommonParameters>]





DESCRIPTION

Adds a "microsoft.graph.deviceAndAppManagementRoleAssignment" object to the "roleAssignments" collection.



The Role Assignments.



Graph call: POST ~/deviceManagement/roleAssignments





PARAMETERS

-members <string[]>

The "members" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



The list of ids of role member security groups. These are IDs from Azure Active Directory.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-displayName <string>

The "displayName" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



The display or friendly name of the role Assignment.



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.deviceAndAppManagementRoleAssignment" type.



Description of the Role Assignment.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-resourceScopes <string[]>

The "resourceScopes" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



List of ids of role scope member security groups. These are IDs from Azure Active Directory.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-roleDefinition <object>

The "roleDefinition" property, of type "microsoft.graph.roleDefinition".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



Role definition this assignment is part of.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

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 "members" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



The list of ids of role member security groups. These are IDs from Azure Active Directory.



System.String

The "displayName" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



The display or friendly name of the role Assignment.



System.String

The "description" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



Description of the Role Assignment.



System.String[]

The "resourceScopes" property, of type "Edm.String".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



List of ids of role scope member security groups. These are IDs from Azure Active Directory.



System.Object

The "roleDefinition" property, of type "microsoft.graph.roleDefinition".



This property is on the "microsoft.graph.deviceAndAppManagementRoleAssignment" type.



Role definition this assignment is part of.



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