DM-
SV01 Server ● BMC User Manual ● Rev. 2.1
118
3.3.11.3 Change BMC User Role
Using a PATCH request, it is possible to change the privilege level of a specific BMC User. The
username is placed in the URI of the PATCH request and the new privilege to be set is part of the
payload. The available user roles are the following:
● “Administrator”
● “Operator”
● “ReadOnly”
● “NoAccess”
Important:
it is not possible to change the privilege level of the default “root” user, which is always fixed
to “Administrator”.
Function
Change BMC user role
Operation
PATCH
URI
https://<BMC_IP>/redfish/v1/AccountService/Accounts/<username>
Payload
{
“RoleId”: “<user role>”
}
Header
X-Auth-
Token: “<token>”
Expected
response
200 OK
Reply
{
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_0_0.Message",
"Message": "Successfully Completed Request",
"MessageArgs": [],
"MessageId": "Base.1.4.0.Success",
"Resolution": "None",
"Severity": "OK"
}
]
}
Once the operation is successful, it returns the response “200 OK” and the user role is changed
according to the string sent inside the payload of the request.