Share via


Add-PartnerCustomerUserRoleMember

Adds a customer user to a specified role.

Syntax

Add-PartnerCustomerUserRoleMember
   -CustomerId <String>
   [-UserId <String>]
   [-RoleId <String>]
   [<CommonParameters>]

Description

The Add-PartnerCustomerUserRoleMember cmdlet adds a specified role to the target customer user.

Examples

Example 1

PS C:\> Add-PartnerCustomerUserRoleMember -CustomerId c4f6bf3c-60de-432e-a3ec-20bcc5b26ec2 -UserId 00aa00aa-bb11-cc22-dd33-44ee44ee44ee -RoleId 62e90394-69f5-4237-9190-012177145e10

Adds the specified user with the identifier of 00aa00aa-bb11-cc22-dd33-44ee44ee44ee to the role with the identifier of 62e90394-69f5-4237-9190-012177145e10.

Parameters

-CustomerId

Identifier for the customer.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-RoleId

Identifier for the role.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-UserId

Identifier for the customer user.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Boolean