All Products
Search
Document Center

:ListRoleUsers

Last Updated:May 20, 2024

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/metastore/auth/roles/roleusers

Request parameters

ParameterTypeRequiredDescriptionExample
PageSizeintegerNo

PageSize

-1/100
UserNamePatternstringNo

use name pattern filter

.*user.*
NextPageTokenstringNo

NextPageToken

token!

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

RequestId

558D764F-8C55-49CA-BF38-80EA532FC08F
UserRolesUserRoles

user roles

NextPageTokenstring

NextPageToken

token!

Examples

Sample success responses

JSONformat

{
  "RequestId": "558D764F-8C55-49CA-BF38-80EA532FC08F",
  "Code": "OK",
  "Message": ".",
  "Success": true,
  "UserRoles": [
    {
      "Role": {
        "Name": "role_name",
        "Description": "role description",
        "Users": [
          {
            "PrincipalArn": "acs:ram::[AliyunAccountId]:user/username_abc"
          }
        ],
        "DisplayName": "显示名称,允许中文",
        "PrincipalArn": "acs:dlf::111:role/role_name",
        "CreateTime": 1647323053,
        "UpdateTime": 1647323053,
        "IsPredefined": 1
      },
      "GrantTime": 0,
      "User": {
        "PrincipalArn": "acs:ram::[AliyunAccountId]:user/username_abc"
      }
    }
  ],
  "NextPageToken": "token!"
}

Error codes

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