< Back
Restore-PartnerCustomerUser
Post
NAME Restore-PartnerCustomerUser
SYNOPSIS
Restores a previously removed customer user from the customer's tenant.
SYNTAX
Restore-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Restore-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
The Restore-PartnerCustomerUser cmdlet restores the specified user that was previously removed from the customer
tenant.
PARAMETERS
-CustomerId <String>
Identifier for the customer.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserId <String>
Identifier for the user.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserPrincipalName <String>
Identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
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
System.Boolean
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Restore-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserPrincipalName
"Hugh@wingtiptoys.onmicrosoft.com"
Restores the customer user with the User Principal Name of Hugh@wingtiptoys.onmicrosoft.com
-------------------------- Example 2 --------------------------
PS C:\\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserId
Restores the customer user with the User identifier of 6e668259-1f09-479d-bcb8-d9b03e826b8d
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... stomerUser
SYNOPSIS
Restores a previously removed customer user from the customer's tenant.
SYNTAX
Restore-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Restore-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
The Restore-PartnerCustomerUser cmdlet restores the specified user that was previously removed from the customer
tenant.
PARAMETERS
-CustomerId <String>
Identifier for the customer.
Required? true
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserId <String>
Identifier for the user.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-UserPrincipalName <String>
Identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
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
System.Boolean
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> Restore-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserPrincipalName
"Hugh@wingtiptoys.onmicrosoft.com"
Restores the customer user with the User Principal Name of Hugh@wingtiptoys.onmicrosoft.com
-------------------------- Example 2 --------------------------
PS C:\\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserId
Restores the customer user with the User identifier of 6e668259-1f09-479d-bcb8-d9b03e826b8d
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... stomerUser