< Back

New-DeviceManagement_RoleDefinitions_RoleAssignments_RoleDefinitionReference

Sat Jan 18, 2020 12:26 pm

NAME New-DeviceManagement_RoleDefinitions_RoleAssignments_RoleDefinitionReference



SYNOPSIS

Creates a reference from a "roleAssignment" to a "microsoft.graph.roleDefinition" object.





SYNTAX

New-DeviceManagement_RoleDefinitions_RoleAssignments_RoleDefinitionReference -roleAssignmentId <string>

-roleDefinitionId <string> -roleDefinitionReferenceUrl <string> [<CommonParameters>]





DESCRIPTION

Creates a reference from the "roleAssignment" object to a "roleDefinition".



Role definition this assignment is part of.



Graph Call: PUT

~/deviceManagement/roleDefinitions/{roleDefinitionId}/roleAssignments/{roleAssignmentId}/roleDefinition/$ref





PARAMETERS

-roleDefinitionId <string>

A required ID for referencing a "microsoft.graph.roleDefinition" object in the "roleDefinitions" collection.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-roleAssignmentId <string>

A required ID for referencing a "microsoft.graph.roleAssignment" object in the "roleAssignments" collection.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-roleDefinitionReferenceUrl <string>

The URL which should be used to access a "microsoft.graph.roleDefinition" object.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-deviceAndAppManagementRoleDefinitionReferenceUrl <string>

The URL which should be used to access a "microsoft.graph.roleDefinition" object.



This is an alias of the roleDefinitionReferenceUrl 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

A required ID for referencing a "microsoft.graph.roleDefinition" object in the "roleDefinitions" collection.



System.String

A required ID for referencing a "microsoft.graph.roleAssignment" object in the "roleAssignments" collection.



System.String

The URL which should be used to access a "microsoft.graph.roleDefinition" object.





OUTPUTS





RELATED LINKS

GitHub Repository https://github.com/Microsoft/Intune-PowerShell-SDK