CmdID

CmdID / PowerShell / Cmdlets / New

New-MgRoleManagementDirectoryRoleAssignment

Create a new unifiedRoleAssignment object. Microsoft Graph PowerShell reference

From the Microsoft Graph PowerShell reference 23 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

23 in the Microsoft Graph PowerShell reference
Show its 23 parameters
-AdditionalPropertiesAdditional Parameters
-AppScopeappScope To construct, see NOTES section for APPSCOPE properties and create a hash table.
-AppScopeIdIdentifier of the app specific scope when the assignment scope is app specific.
-BodyParameterunifiedRoleAssignment To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
-BreakWait for .NET debugger to attach
-Condition
-Confirm, -cfPrompts you for confirmation before running the cmdlet.
-DirectoryScopedirectoryObject To construct, see NOTES section for DIRECTORYSCOPE properties and create a hash table.
-DirectoryScopeIdIdentifier of the directory object representing the scope of the assignment.
-HeadersOptional headers that will be added to the request.
-HttpPipelineAppendSendAsync Pipeline Steps to be appended to the front of the pipeline
-HttpPipelinePrependSendAsync Pipeline Steps to be prepended to the front of the pipeline
-IdThe unique identifier for an entity.
-PrincipaldirectoryObject To construct, see NOTES section for PRINCIPAL properties and create a hash table.
-PrincipalIdIdentifier of the principal to which the assignment is granted.
-PrincipalOrganizationId
-ProxyThe URI for the proxy server to use
-ProxyCredentialCredentials for a proxy server to use for the remote call
-ProxyUseDefaultCredentialsUse the default credentials for the proxy
-ResponseHeadersVariable, -RHVOptional Response Headers Variable.
-RoleDefinitionunifiedRoleDefinition To construct, see NOTES section for ROLEDEFINITION properties and create a hash table.
-RoleDefinitionIdIdentifier of the unifiedRoleDefinition the assignment is for.
-WhatIf, -wiRuns the command in a mode that only reports what would happen without performing the actions.