Share via


Get-PartnerCustomerUserRole

Gets a list of directory roles for a customer.

Syntax

Get-PartnerCustomerUserRole
   -CustomerId <String>
   [-UserId <String>]
   [<CommonParameters>]

Description

Gets a list of directory roles for a customer.

Examples

Example 1

PS C:\> Get-PartnerCustomerUserRole -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'

Gets a list of directory roles for a customer.

Example 2

PS C:\> Get-PartnerCustomerUserRole -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -UserId '00aa00aa-bb11-cc22-dd33-44ee44ee44ee'

Gets a list of directory roles assigned to the specified user.

Parameters

-CustomerId

The identifier for the customer.

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

-UserId

Identifier for the user.

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

Inputs

None

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Roles.PSDirectoryRole