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 '8e873002-9c5e-4cb5-928a-cbc14f51c398'

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