ListUsersInfoByProject
Queries the members of a project along with their user IDs and names. To filter by user conditions and paginate the results, use PageQueryProjectUserInfo.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:ListUsersInfoByProject |
list |
*Project
|
None | None |
Request syntax
GET /api/v1/projects/{projectName}/usersInfo HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project to query. |
example_project |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| marker |
string |
No |
The pagination cursor reserved for compatibility with existing calls. The current implementation does not split results based on this value. |
example_marker |
| maxItem |
integer |
No |
The page size parameter reserved for compatibility with existing calls. Default value: 10. The value must be greater than 0 when specified. The current implementation does not truncate the list based on this value. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult<ArrayList |
||
| requestId |
string |
The ID of the request. You can use the request ID to query request logs and troubleshoot issues. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| httpCode |
integer |
The HTTP status code returned for an error response, such as a parameter validation failure. |
400 |
| errorCode |
string |
The error code returned when the call fails. |
ILLEGAL_ARGUMENT |
| errorMsg |
string |
The error message returned when the call fails. |
projectName cannot be empty |
| userInfo |
array<object> |
The list of project members. |
|
|
object |
|||
| name |
string |
The name of the user in the project. |
RAM$example_account:example_user |
| id |
string |
The user ID of the project member. |
1234567890123456 |
Examples
Success response
JSON format
{
"requestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"httpCode": 400,
"errorCode": "ILLEGAL_ARGUMENT",
"errorMsg": "projectName cannot be empty",
"userInfo": [
{
"name": "RAM$example_account:example_user",
"id": "1234567890123456"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.