< Back

Get-PartnerCustomerUserRole

Sat Jan 18, 2020 6:31 pm

NAME Get-PartnerCustomerUserRole



SYNOPSIS

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.





PARAMETERS

-CustomerId <String>

The identifier for the customer.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-UserId <String>

Identifier for the user.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

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







NOTES









-------------------------- 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.







RELATED LINKS

Online Version: https://docs.microsoft.com/powershell/m ... erUserRole