user_mgr: Adding priv-noaccess role
Issue: For users with no privilege access the property was marked
as empty, but it was causing issues with Redfish, as
AllPrivilege property was not reflected to indicate that
NoAccess exists. This commit adds priv-noaccess to the
AllPrivilege property list.
This commit is part of below patch:
https://gerrit.openbmc-project.xyz/#/c/openbmc/bmcweb/+/23962/
Tested:
AllPrivilege returns all supported privileges here
Snapshot from Redfish:
https://<BMC IP>/redfish/v1/AccountService/Roles
{
"@odata.context": "/redfish/v1/$metadata#RoleCollection.
RoleCollection",
"@odata.id": "/redfish/v1/AccountService/Roles",
"@odata.type": "#RoleCollection.RoleCollection",
"Description": "BMC User Roles",
"Members": [
{
"@odata.id": "/redfish/v1/AccountService/Roles/Administrator"
},
{
"@odata.id": "/redfish/v1/AccountService/Roles/Operator"
},
{
"@odata.id": "/redfish/v1/AccountService/Roles/User"
},
{
"@odata.id": "/redfish/v1/AccountService/Roles/Callback"
},
{
"@odata.id": "/redfish/v1/AccountService/Roles/NoAccess"
}
],
"Members@odata.count": 5,
"Name": "Roles Collection"
}
Signed-off-by: jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: Ic4eb71552859399c207c39109a5938350792bdbf
1 file changed