Adds or removes users from a project role.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:UpdateUsersToRole |
update |
*Project
|
None | None |
Request syntax
PUT /api/v1/projects/{projectName}/roles/{roleName}/users HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project. |
project_a |
| roleName |
string |
Yes |
The name of the project role. |
admin |
| body |
object |
No |
The request body. |
|
| add |
array |
No |
The action to add users to the project role. |
|
|
string |
No |
The list of accounts. |
["ALIYUN$test1","ALIYUN$test2"] |
|
| remove |
array |
No |
The action to remove users from the project role. |
|
|
string |
No |
The list of accounts. |
["ALIYUN$test3","ALIYUN$test4"] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The request ID. |
0a032a1317254153012687347ef4ee |
| data |
string |
The returned result. |
success |
Examples
Success response
JSON format
{
"requestId": "0a032a1317254153012687347ef4ee",
"data": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.