Permissions control what a user can do in HPE OneView and which resources they can act on. Every session carries a set of permissions derived from the roles and scopes assigned to the authenticated user or group.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.
What permissions are
A permission combines two things:- Role — Grants access to a resource category with specific rights (read, create, delete, update, use). For example, the
Server administratorrole grants full rights to theserver hardwarecategory. - Scope (optional) — Further restricts the role to a subset of resources within that category. For example, a scope named
Testcan limit server hardware rights to only servers in that scope.
Set-OVUser or Set-OVLdapGroupRole to manage the permissions assigned to a user or directory group.
The ActivePermissions property
When you authenticate withConnect-OVMgmt, the appliance grants all permissions assigned to that user. These are stored as a collection of HPEOneView.Appliance.ConnectionPermission objects in the ActivePermissions property of the HPEOneView.Appliance.Connection object.
HPEOneView.Appliance.ConnectionPermission object has three properties:
ConnectionPermission properties
ConnectionPermission properties
| Property | Type | Description |
|---|---|---|
RoleName | [String] | The name of the role granted by this permission (e.g., Network administrator, Server administrator). |
ScopeName | [String] | The name of the scope this permission is restricted to. AllResources means no scope restriction. |
Active | [Bool] | Whether this permission is currently active in the session. Set to False when reduced by Push-OVAppliancePermission. |
Reducing privileges with Push-OVAppliancePermission
Operating with only the permissions required for a specific task is a security best practice — it reduces the risk of making an unintended change. UsePush-OVAppliancePermission to activate a subset of your assigned permissions.
When you call Push-OVAppliancePermission, the library:
- Sends the selected permissions to the appliance.
- Receives a new
SessionIDtoken scoped to those permissions. - Updates
ActivePermissions— unselected permissions have theirActiveproperty set toFalse.
Reduce to a single role
This example reduces the active session to only theNetwork administrator role:
Reduce to a specific scope
This example restricts the session to only permissions associated with theSite A Admins scope:
Restoring full permissions with Pop-OVAppliancePermission
To restore your session to the full set of permissions originally granted at login, callPop-OVAppliancePermission:
Push-OVAppliancePermission, reactivates all previously deactivated permissions, and issues a new SessionID with the original permission set.
Targeting a specific connection
Both cmdlets accept an-ApplianceConnection parameter. By default, they act on the default connection. To target a specific appliance:
See also
- Appliance connections — How
$ConnectedSessionsand connection objects work - Scopes and roles — Built-in roles and scope-based filtering
Get-Help Push-OVAppliancePermissionGet-Help Pop-OVAppliancePermissionGet-Help Set-OVUserGet-Help Set-OVLdapGroupRole