Set-PSUIdentity
SYNOPSIS
Sets properties of an identity.
SYNTAX
Id
Set-PSUIdentity [-Id] <Int64> [-Name <String>] [-Role <Role>] [-Password <SecureString>]
[-CredentialVault <String>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]Identity
Set-PSUIdentity [-Identity] <Identity> [-Name <String>] [-Role <Role>] [-Password <SecureString>]
[-CredentialVault <String>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]DESCRIPTION
Sets properties of an identity.
EXAMPLES
Example 1
Sets Identity 123's name to 'Adam'
Example 2
Sets the Identity Adam to Lee.
PARAMETERS
-AppToken
An app token to access the PSU API.
-ComputerName
The HTTP address of the PSU REST API server.
-Id
The ID of the identity.
-Identity
An Identity object returned by Get-UAIdentity.
-Integrated
Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.
-Name
The name to set on the identity.
-Role
The Role to set on the identity. Use Get-UARole to retrieve built in roles.
-UseDefaultCredentials
Use default credentials when connecting to the management API
-CredentialVault
A credential vault to set this identity's password into.
-Password
A password for the local account.
-Credential
Credentials to login to the PowerShell Universal Management API.
-TrustCertificate
Whether the cmdlet should ignore certificate issues.
-Cookies
Reuses and persists authentication cookies for the current PowerShell session.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.
INPUTS
UniversalAutomation.Identity
OUTPUTS
System.Object
NOTES
RELATED LINKS
PERMISSIONS
The access token requires security.identities/update to run this cmdlet remotely.
Last updated
Was this helpful?