HP OneView REST API Reference

users
users.html[10/17/2013 10:35:59 AM]
"category": "users",
"created": "2013-08-06T10:06:32.317Z",
"eTag": null,
"modified": "2013-08-06T10:06:32.319Z"
}
PUT Changes user details including associated roles. This allows logged in users of the appliance to
modify the user account properties(except user name) and roles of other's user account.
Requires to be executed by user with update permission.
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Request
Body
Attributes Description
UserModify Required Contains user info and roles to update
Response Description
UserRolesV2 Updated user info and roles
Response Codes
REST API Response Codes
Examples
PUT https://{appl}/rest/users
Example 1: Change the password, email, phone numbers, enable/disable,
add or replace roles
of user with proper privileges by supplying all the values.
https://{app1}/rest/users
{
"userName" : "testUser",
"password" : "Hpvse12345",
"emailAddress" : "",
"officePhone" : "303-555-1212",
"mobilePhone" : "303-555-1212",
"enabled" : "true",
"roles" : ["Infrastructure administrator"],
"replaceRoles" : "true"
}
Example 2: Change the password of the user with proper
privileges by supplying only the user name and the password values.
https://{appl}/rest/users
{
"userName" : "testUser",
"password" : "Hpvse12345"
}
Example 3: Enable or disable user with proper
privileges by supplying only the user name and the enabled (true/false)
value.