Skip to main content

POST – Create a custom role

Use the POST method to create a custom role for Redfish service.

Request URL

POST https://<BMC_IPADDR>/redfish/v1/AccountService/Roles

Request body

FieldTypeDescription

RoleId

String

A value not duplicated with Pre-defined roles.

OemPrivileges

Array
The value of this property is a set of OEM privileges that this role includes. The values can be
  • Supervisor

  • ReadOnly

  • Configuration_NetworkingAndSecurity

  • UserAccountManagement

  • RemoteConsoleAccess

  • RemoteConsoleAndVirtualMediaAccess

  • RemoteServerPowerRestartAccess

  • Configuration_Basic

  • AbilityClearEventLogs

  • Configuration_Advanced

  • Configuration_UEFISecurity

Response body

The response returns the same content as GET operation with updated properties.

Status code

HTTP Status CodeError Message ID
500InternalError