All Products
Search
Document Center

MaxCompute:ListUsersByRole

Last Updated:Mar 03, 2024

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

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

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.

usersobject []

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