Restores a deleted customer user.
Restore-PCCustomerUser [[-TenantId] <String>] [-UserId] <String> [[-SaToken] <String>] [<CommonParameters>]
The Restore-PCCustomerUser cmdlet restores a deleted customer user.
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 restore.
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
Find the deleted account.
PS C:\>$user = Get-PCCustomerUser -Deleted -TenantId db8ea5b4-a69b-45f3-abd3-dca19e87c536 | Where-Object {$_.userPrincipalName -eq 'John@wingtiptoyscsptest.onmicrosoft.com'}
Restore the deleted user account
Restore-PCCustomerUser -TenantId $customer.id -UserId $User.Id