Share via


Set-PartnerCustomerUser

Updates the specified customer user account.

Syntax

UserId (Default)

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

UserObject

Set-PartnerCustomerUser
    [-CustomerId] <String>
    -InputObject <PSCustomerUser>
    [-DisplayName <String>]
    [-FirstName <String>]
    [-ForceChangePasswordNextLogin]
    [-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 00aa00aa-bb11-cc22-dd33-44ee44ee44ee -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 00aa00aa-bb11-cc22-dd33-44ee44ee44ee -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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CustomerId

Identifier for the customer.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisplayName

User's display name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-FirstName

User's first name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ForceChangePasswordNextLogin

Forces user to change password during next login.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

The customer user object to be modified.

Parameter properties

Type:PSCustomerUser
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UserObject
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-LastName

User's last name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Password

User's new password.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UsageLocation

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserId

Identifier for the user.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UserId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserPrincipalName

User principal name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Inputs

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

Outputs

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