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
Creates a new local user account with optional role assignments and contact details.Syntax
Description
New-OVUser creates a local user account directly on the HPE OneView appliance. The new account is enabled by default. To restrict which resources the user can manage, assign one or more roles using -Roles and optionally scope those roles to specific resource collections using -ScopePermissions.
Only users with the Infrastructure administrator role can create new accounts.
The
-Enabled parameter accepted in earlier library versions is deprecated. All new accounts are created in an enabled state. Use Set-OVUser -Disabled to deactivate an account after creation.Parameters
The login username for the new account. Must be unique on the appliance.
The initial password for the account. The password is transmitted securely to the appliance.
The display name (full name) for the account, used in the UI and audit logs.
One or more role names to assign to the account. Role names are case-insensitive. Valid built-in roles are:
Infrastructure administratorServer administratorNetwork administratorStorage administratorRead onlyBackup administratorScope operatorScope administrator
An array of hashtables that pair a role name with a scope object (from
Get-OVScope). Use this to assign a role that applies only within a specific resource scope rather than globally. Each entry must have a Role key and a Scope key. Pass 'All' as the scope value to grant global access for that role.A valid email address for the account, used for notifications. Validated as a properly formatted address.
The user’s office phone number, stored as a contact detail.
The user’s mobile phone number, stored as a contact detail.
The appliance connection object or name. Defaults to the default connected session in
$ConnectedSessions. Accepts an array of connections to create the account on multiple appliances simultaneously. Aliased as Appliance.Examples
Create a server administrator account
srvadmin with the Server administrator role and a contact email.
Create a read-only account
Create an account with scope-restricted permissions
prod-admin whose Server administrator role is restricted to resources in the Production scope.
Output
HPEOneview.Appliance.User
Returns the newly created user account object.