Post by kennyliu on Oct 17, 2022 10:40:47 GMT
Hi,
I want to know how to determine the privilege of deep operation.
There are some situations of deep PATCH below.
What response will be expected when using the ReadOnly account to do deep PATCH?
The ReadOnly account's ID is 5.
1.
PATCH /redfish/v1/AccountService.Deep
-----request body-----
{
"Accounts":{
"@odata.id": "/redfish/v1/AccountService/Accounts",
"Members":[
{
"@odata.id": "/redfish/v1/AccountService/Accounts/5",
"Password": "12345678"
}
]
}
}
The PATCH privilege of AccountService is
"PATCH": [
{
"Privilege": [
"ConfigureUsers"
]
}
]
Will the response of this situation be 204 or 403 with InsufficientPrivilege message or others?
2.
If we could change the password in situation 1, how about this situation?
PATCH /redfish/v1/AccountService.Deep
-----request body-----
{
"Accounts":{
"@odata.id": "/redfish/v1/AccountService/Accounts",
"Members":[
{
"@odata.id": "/redfish/v1/AccountService/Accounts/5",
"Password": "12345678"
},
{
"@odata.id": "/redfish/v1/AccountService/Accounts/3",
"Password": "12345678"
}
]
}
}
Will it be only ReadOnly account's password changed successfully or this action be rejected?
And what message will be return?
I want to know how to determine the privilege of deep operation.
There are some situations of deep PATCH below.
What response will be expected when using the ReadOnly account to do deep PATCH?
The ReadOnly account's ID is 5.
1.
PATCH /redfish/v1/AccountService.Deep
-----request body-----
{
"Accounts":{
"@odata.id": "/redfish/v1/AccountService/Accounts",
"Members":[
{
"@odata.id": "/redfish/v1/AccountService/Accounts/5",
"Password": "12345678"
}
]
}
}
The PATCH privilege of AccountService is
"PATCH": [
{
"Privilege": [
"ConfigureUsers"
]
}
]
Will the response of this situation be 204 or 403 with InsufficientPrivilege message or others?
2.
If we could change the password in situation 1, how about this situation?
PATCH /redfish/v1/AccountService.Deep
-----request body-----
{
"Accounts":{
"@odata.id": "/redfish/v1/AccountService/Accounts",
"Members":[
{
"@odata.id": "/redfish/v1/AccountService/Accounts/5",
"Password": "12345678"
},
{
"@odata.id": "/redfish/v1/AccountService/Accounts/3",
"Password": "12345678"
}
]
}
}
Will it be only ReadOnly account's password changed successfully or this action be rejected?
And what message will be return?