Share via


Add-PartnerCustomerUserRoleMember

Adds a customer user to a specified role.

Syntax

Default (Default)

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RoleId

Identifier for the role.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserId

Identifier for the customer user.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Boolean