Skip to main content

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

Returns one or more local user account objects defined on an HPE OneView appliance.

Syntax

Get-OVUser
    [-Name <String>]
    [-ApplianceConnection <Object>]
    [<CommonParameters>]

Description

Get-OVUser queries the appliance index for local user accounts and returns the matching objects. Use this cmdlet to inspect account properties, view assigned roles, and feed user objects into Set-OVUser or Remove-OVUser via the pipeline. When called by a user who does not have the Infrastructure administrator role, the cmdlet automatically falls back to returning only the calling user’s own account record. Wildcard characters (*) are supported in the Name parameter.

Parameters

Name
string
The username to search for. Accepts wildcard characters (*). When omitted, all local user accounts are returned. Aliased as Username.
ApplianceConnection
Object
default:"Default connected session"
The appliance connection object or name. Defaults to the default connected session in $ConnectedSessions. Accepts an array of connections to query multiple appliances. Aliased as Appliance.

Examples

List all local user accounts

Get-OVUser
Returns every local user account on the default connected appliance.

Get a specific user by name

Get-OVUser -Name 'jsmith'
Returns the user account with the username jsmith.

Use a wildcard to find accounts matching a pattern

Get-OVUser -Name 'admin*'
Returns all local users whose username begins with admin.

Pipe a user object into Set-OVUser

Get-OVUser -Name 'jsmith' | Set-OVUser -FullName 'Jane Smith'
Retrieves the jsmith account and updates the display name.

Output

HPEOneview.Appliance.User Each returned object includes the following key properties:
PropertyTypeDescription
userNameStringThe login username.
fullNameStringThe display name.
emailAddressStringThe contact email address.
officePhoneStringThe office phone number.
mobilePhoneStringThe mobile phone number.
enabledBooleanWhether the account is active.
permissionsArrayThe role and scope assignments for this user.

Build docs developers (and LLMs) love