Skip to content

Latest commit

 

History

History
138 lines (104 loc) · 3.08 KB

Restore-PartnerCustomerUser.md

File metadata and controls

138 lines (104 loc) · 3.08 KB
content_git_url external help file Module Name online version original_content_git_url schema
Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
PartnerCenter
2.0.0

Restore-PartnerCustomerUser

SYNOPSIS

Restores a previously removed customer user from the customer's tenant.

SYNTAX

ByUserId (Default)

Restore-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>]

ByUpn

Restore-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

The Restore-PartnerCustomerUser cmdlet restores the specified user that was previously removed from the customer tenant.

EXAMPLES

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

PARAMETERS

-CustomerId

Identifier for the customer.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UserId

Identifier for the user.

Type: String
Parameter Sets: ByUserId
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UserPrincipalName

Identifier for the customer.

Type: String
Parameter Sets: ByUpn
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Boolean

NOTES

RELATED LINKS