Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Updates the properties of an existing local user account, including password, roles, contact information, and account state.Syntax
By username:Description
Set-OVUser updates one or more properties on an existing local user account. Provide either the username string with -UserName or pipe a user object retrieved from Get-OVUser.
When -Roles is supplied without -Append, the existing role assignments are replaced with the new list. Use -Append to add roles to the current set without removing any.
You cannot modify the password or roles of your own currently authenticated account with this cmdlet. Use Set-OVUserPassword to change your own password.
Parameters
A user account object returned by
Get-OVUser, accepted from the pipeline. Use this parameter set to update a user by object reference rather than by name.The login username of the account to modify. Required when not using pipeline input.
The new password for the account. Has no effect on the currently authenticated user’s account.
The updated display name for the account.
One or more role names to assign. Replaces existing roles unless
-Append is also specified. Has no effect on the currently authenticated user’s account. See New-OVUser for the list of valid built-in role names.When specified with
-Roles, adds the supplied roles to the account’s existing role set instead of replacing them.An array of hashtables pairing a role name with a scope object. Replaces the existing scope-based permissions. Each entry must have a
Role key and a Scope key.The updated email address for the account. Must be a valid email format.
The updated office phone number.
The updated mobile phone number.
Enables a previously disabled account. Aliased as
enable.Disables the account, preventing login without deleting it. Aliased as
disable.The appliance connection object or name. Defaults to the default connected session. Aliased as
Appliance.Examples
Update a user’s password
jsmith account.
Replace a user’s role assignments
jsmith with Network administrator and Read only.
Append an additional role without removing existing ones
jsmith already holds.
Disable an account via pipeline
contractor1 account and disables it.
Update contact details
jsmith.
Output
HPEOneview.Appliance.User
Returns the updated user account object.