CmdID / PowerShell / Cmdlets / New
New-ManagementRoleAssignment
Use the New-ManagementRoleAssignment cmdlet to assign a management role to a management role group, management role assignment policy, user, or universal security group (USG). Exchange PowerShell reference
From the Exchange PowerShell reference 22 parameters Its page in the reference
Parameters
Show its 22 parameters
-NameThe Name parameter specifies a name for the new management role assignment.-AppThe App parameter specifies the service principal to assign the management role to.-ComputerThe Computer parameter specifies the name of the computer to assign the management role to.-PolicyThe Policy parameter specifies the name of the management role assignment policy to assign the management role to.-RoleThe Role parameter specifies the existing role to assign.-SecurityGroupThe SecurityGroup parameter specifies the name of the management role group or mail-enabled universal security group to assign the management role to.-UserThe User parameter specifies the user to assign the management role to.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-CustomConfigWriteScopeThe CustomConfigWriteScope parameter specifies the existing configuration scope to associate with this management role assignment.-CustomRecipientWriteScopeThe CustomRecipientWriteScope parameter specifies the existing recipient-based management scope to associate with this management role assignment.-CustomResourceScopeThe CustomResourceScope parameter specifies the custom management scope to associate with this management role assignment.-DelegatingThe Delegating switch specifies whether the user or USG assigned to the role can delegate the role to other users or groups.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-ExclusiveConfigWriteScopeThe ExclusiveConfigWriteScope parameter specifies the exclusive configuration-based management scope to associate with the new role assignment.-ExclusiveRecipientWriteScopeThe ExclusiveRecipientWriteScope parameter specifies the exclusive recipient-based management scope to associate with the new role assignment.-ForceThe Force switch hides warning or confirmation messages.-RecipientAdministrativeUnitScopeThe RecipientAdministrativeUnitScope parameter specifies the administrative unit to scope the new role assignment to.-RecipientGroupScopeThe RecipientGroupScope parameter specifies a group to consider for scoping the role assignment.-RecipientOrganizationalUnitScopeThe RecipientOrganizationalUnitScope parameter specifies the OU to scope the new role assignment to.-RecipientRelativeWriteScopeThe RecipientRelativeWriteScope parameter specifies the type of restriction to apply to a recipient scope.-UnScopedTopLevelBy default, this parameter is available only in the UnScoped Role Management role, and that role isn't assigned to any role groups.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.