< Back

New-RoleAssignmentObject

Sat Jan 18, 2020 1:34 pm

NAME New-RoleAssignmentObject



SYNOPSIS

Creates a new object which represents a "microsoft.graph.roleAssignment" (or one of its derived types).





SYNTAX

New-RoleAssignmentObject -roleAssignment <SwitchParameter> [-description <string>] [-displayName <string>]

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



New-RoleAssignmentObject -deviceAndAppManagementRoleAssignment <SwitchParameter> [-description <string>]

[-displayName <string>] [-members <string[]>] [-resourceScopes <string[]>] [-roleDefinition <object>]

[<CommonParameters>]





DESCRIPTION

Creates a new object which represents a "microsoft.graph.roleAssignment" (or one of its derived types).



The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can

be one or more role assignments per role. This applies to custom and built-in roles.





PARAMETERS

-roleAssignment <SwitchParameter>

A switch parameter for selecting the parameter set which corresponds to the "microsoft.graph.roleAssignment"

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



The display or friendly name of the role Assignment.



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



Description of the Role Assignment.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-resourceScopes <string[]>

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



This property is on the "microsoft.graph.roleAssignment" 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? false

Accept wildcard characters? false



-roleDefinition <object>

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



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



Role definition this assignment is part of.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-deviceAndAppManagementRoleAssignment <SwitchParameter>

A switch parameter for selecting the parameter set which corresponds to the

"microsoft.graph.deviceAndAppManagementRoleAssignment" type.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-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? false

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



OUTPUTS





RELATED LINKS