Returns a list of all customer users or a specified user for the tenant.
Get-PCCustomerUser [-TenantId <String>] [-SaToken <String>] [<CommonParameters>]
Get-PCCustomerUser [-TenantId <String>] -Deleted [-ResultSize <Int32>] [-SaToken <String>] [<CommonParameters>]
Get-PCCustomerUser [-TenantId <String>] -UserId <String> [-Licenses] [-SaToken <String>] [<CommonParameters>]
The Get-PCCustomerUser cmdlet returns either all users or a specified user from the tenant.
Specifies the tenant used for scoping this cmdlet.
Required? false
Position? named
Default value $GlobalCustomerId
Accept pipeline input? false
Accept wildcard characters? false
Specifies the user id.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
Specifies whether to return the licenses assigned to the specified user.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
Specifies whether to return deleted users.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
Specifies the maximum number of results to return. The default value is 200, the maximum allowed value is 500.
Required? false
Position? named
Default value 200
Accept pipeline input? false
Accept wildcard characters? false
Specifies an authentication token with your Partner Center credentials.
Required? false
Position? named
Default value $GlobalToken
Accept pipeline input? false
Accept wildcard characters? false
Get all users for the specified tenant.
PS C:\>Get-PCCustomerUser -TenantId 45916f92-e9c3-4ed2-b8c2-d87aa129905f
Get a customer user
PS C:\>$user = Get-PCCustomerUser -TenantId 45916f92-e9c3-4ed2-b8c2-d87aa129905f -userid 'e2e56b09-aac5-4685-947d-29e735ee7ed7'
Get a list of user assigned licenses for the specified user id.
PS C:\>Get-PCCustomerUser -TenantId 45916f92-e9c3-4ed2-b8c2-d87aa129905f -UserId 'e2e56b09-aac5-4685-947d-29e735ee7ed7' -Licenses
Get a list of deleted users for the tenant
PS C:\>Get-PCCustomerUser -TenantId 45916f92-e9c3-4ed2-b8c2-d87aa129905f -Deleted