All Products
Search
Document Center

MaxCompute:ListUsersByRole

Last Updated:Dec 16, 2024

Obtains information about the users who are assigned a project-level role.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /api/v1/projects/{projectName}/roles/{roleName}/users HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
projectNamestringYes

The name of the MaxCompute project.

projectA
roleNamestringYes

The name of the role.

roleA

Response parameters

ParameterTypeDescriptionExample
object

PopResult

requestIdstring

The ID of the request.

0be3e0bb16654558425251398e27a9
dataobject

The returned data.

usersarray<object>

The users.

userobject

The users.

namestring

The name of the user.

ALIYUN${account_name}

Examples

Sample success responses

JSONformat

{
  "requestId": "0be3e0bb16654558425251398e27a9",
  "data": {
    "users": [
      {
        "name": "ALIYUN${account_name}"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history