Deletes a user from the customer's tenant.
Remove-PCCustomerUser [[-TenantId] <String>] [-UserId] <String> [[-SaToken] <String>] [<CommonParameters>]
The Remove-PCCustomerUser cmdlet removes the specified user from the customer tenant.
Specifies the tenant used for scoping this cmdlet.
Required? false
Position? 1
Default value $GlobalCustomerId
Accept pipeline input? false
Accept wildcard characters? false
Specifies the user id to remove.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
Specifies an authentication token with your Partner Center credentials.
Required? false
Position? 3
Default value $GlobalToken
Accept pipeline input? false
Accept wildcard characters? false
Retrieve the user id for the customer user you want to delete
PS C:\>$user = Get-PCCustomerUser -TenantId db8ea5b4-a69b-45f3-abd3-dca19e87c536 | Where-Object {$_.userPrincipalName -eq 'John@wingtiptoyscsptest.onmicrosoft.com'}
Delete the specified customer user
Remove-PCCustomerUser -TenantId $customer.id -UserId $user.id