You can call this operation to modify the privileges of an account on a database.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DatabaseName | string | Yes | The ID of the tenant. | sms_pre |
TenantId | string | Yes | A list of usernames and their respective roles. | ob2mr3oae0**** |
Users | string | Yes | The ID of the OceanBase cluster. | [{"UserName":"omstest","Role":"readwrite"}] |
InstanceId | string | No | The account information. | ob317v4uif**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"TenantUser": {
"DatabaseName": "sms_pre",
"Users": [
{
"Role": "ReadOnly",
"UserName": "user_pay_ro"
}
],
"TenantId": "t33h8y08k****"
},
"RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
2014 | InternalError | The request processing has failed due to some unknown error. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history