ListUsersByRole
Obtains information about the users who are assigned a project-level role.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListUsersByRole |
list |
*Project
|
None | None |
Request syntax
GET /api/v1/projects/{projectName}/roles/{roleName}/users HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project. |
projectA |
| roleName |
string |
Yes |
The name of the role. |
roleA |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The ID of the request. |
0be3e0bb16654558425251398e27a9 |
| data |
object |
The returned data. |
|
| users |
array<object> |
The users. |
|
|
object |
The users. |
||
| name |
string |
The name of the user. |
ALIYUN${account_name} |
Examples
Success response
JSON format
{
"requestId": "0be3e0bb16654558425251398e27a9",
"data": {
"users": [
{
"name": "ALIYUN${account_name}"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.