DM-
SV01 Server ● BMC User Manual ● Rev. 2.1
116
Figure 106: Redfish - Changing the root password
3.3.11.2 Add BMC User
Using a POST request, it is possible to create a new user for the BMC. The following information about
the new user is required inside the payload:
●
UserName:
the username cannot start with a number and no special characters are allowed,
except the underscore.
●
Password:
the password must have between 8 and 20 characters and must be accepted by
the rules defined as per Linux pam_cracklib, which checks the password against dictionary
words.
●
Role Id:
defines the privilege level of the user. The available user roles are the following:
○ “Administrator”
○ “Operator”
○ “ReadOnly”
○ “NoAccess”
Function
Add new BMC user
Operation
POST
URI
https://<BMC_IP>/redfish/v1/AccountService/Accounts
Payload
{
"UserName": "<username>",
"Password" : "<password>",
"RoleId" : "<privilege>"
}
Header
X-Auth-
Token: “<token>”
Expected
response
201 Created