Set-PartnerCustomerUser

Updates the specified customer user account.

Syntax

Set-PartnerCustomerUser
   [-DisplayName <String>]
   [-FirstName <String>]
   [-ForceChangePasswordNextLogin]
   [-CustomerId] <String>
   [-LastName <String>]
   [-Password <SecureString>]
   [-UsageLocation <String>]
   -UserId <String>
   [-UserPrincipalName <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-PartnerCustomerUser
   [-DisplayName <String>]
   [-FirstName <String>]
   [-ForceChangePasswordNextLogin]
   [-CustomerId] <String>
   -InputObject <PSCustomerUser>
   [-LastName <String>]
   [-Password <SecureString>]
   [-UsageLocation <String>]
   [-UserPrincipalName <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-PartnerCustomerUser cmdlet modifies a customer user account.

Examples

Example 1

PS C:\> Set-PartnerCustomerUser -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -UserId a9ef48bb-8758-4590-a312-d4a47bfaded4 -LastName 'Sullivan'

Modify the user's last name

Example 2

$password = '<Password>'
PS C:\>$passwordSecure = $password | ConvertTo-SecureString -AsPlainText -Force
PS C:\>Set-PartnerCustomerUser -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -UserId a9ef48bb-8758-4590-a312-d4a47bfaded4 -Password $passwordSecure -ForceChangePassword $true

Set the password for the user account and require the user to change the password during the next sign on.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CustomerId

Identifier for the customer.

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

-DisplayName

User's display name.

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

-FirstName

User's first name.

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

-ForceChangePasswordNextLogin

Forces user to change password during next login.

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

-InputObject

The customer user object to be modified.

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

-LastName

User's last name.

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

-Password

User's new password.

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

-UsageLocation

The usage location, the location where user intends to use the license.

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

-UserId

Identifier for the user.

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

-UserPrincipalName

User principal name.

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

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Users.PSCustomerUser

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Users.PSCustomerUser