GetUserInfoByProject
Queries the name and security level of a single project member based on the project name and user ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetUserInfoByProject |
get |
*Project
|
None | None |
Request syntax
GET /api/v1/projects/{projectName}/usersInfo/{userId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| projectName |
string |
Yes |
The name of the MaxCompute project to query. |
example_project |
| userId |
string |
Yes |
The user ID of the project member. |
1234567890123456 |
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. You can use this ID to query request logs and locate exceptions. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| httpCode |
integer |
The HTTP status code returned for an error response. The example value indicates 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 |
| data |
object |
The information about the specified project member. |
|
| 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 |
| securityLevel |
integer |
The security level of the project member. |
0 |
Examples
Success response
JSON format
{
"requestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"httpCode": 400,
"errorCode": "ILLEGAL_ARGUMENT",
"errorMsg": "projectName cannot be empty",
"data": {
"name": "RAM$example_account:example_user",
"id": "1234567890123456",
"securityLevel": 0
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.