Retrieves the list of members in the workspace.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
emr-serverless-spark:ListMembers | list | *All Resource
| None | None |
Request syntax
GET /api/v1/auth/{workspaceId}/members HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
nextToken | string | No | The token that marks the start of the next page of results. | 1 |
maxResults | integer | No | The maximum number of entries to return on each page. | 20 |
workspaceId | string | Yes | The workspace ID. | w-975bcfda9625**** |
regionId | string | No | The region ID. | cn-hangzhou |
Response elements
Element | Type | Description | Example |
object | The returned data. | ||
| members | array<object> | The list of members. | |
object | A member. | ||
memberArn | string | The Alibaba Cloud Resource Name (ARN) of the user. | acs:emr::w-1234****abcd:member/202265*****276 |
userName | string | The username. | jia***test@195*****7311.onaliyun.com |
displayName | string | The display name of the user. | jia***test |
userType | string | The type of the user. Valid values:
| MEMBER |
| roles | array<object> | The list of roles in the workspace. | |
object | A user role. | ||
roleArn | string | The ARN of the role. | acs:emr::w-1234****abcd:role/DataScience |
roleName | string | The name of the role. | DataScience |
description | string | The description. | DataScience |
createTime | integer | The time when the role was created. | 1753412502000 |
| actions | array<object> | The list of permissions. | |
object | |||
actionArn | string | The ARN of the action. | acs:emr::w-1234****abcd:action/add_MEMBER |
actionName | string | The name of the permission. | add |
displayName | string | The display name of the permission. | add members |
description | string | The description of the action. | add members |
| dependencies | array | The list of action dependencies. | ["view"] |
string | A dependency. | VIEW | |
| actions | array<object> | The list of operations allowed for this user. | |
object | |||
actionArn | string | The ARN of the action. | acs:emr::w-1234****abcd:action/add_MEMBER |
actionName | string | The name of the permission. | add |
displayName | string | The display name of the permission. | add members |
description | string | The description of the action. | add members |
| dependencies | array | The list of action dependencies. | ["view"] |
string | A dependency. | VIEW | |
visible | boolean | Indicates whether the member is visible. | true |
createTime | string | The time when the member was created. | 1753412502000 |
requestId | string | The request ID. | DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
nextToken | string | The token for the next page of results. | 1 |
maxResults | integer | The maximum number of entries returned per page. | 20 |
totalCount | integer | The total number of entries. | 200 |
Examples
Success response
JSON format
{
"members": [
{
"memberArn": "acs:emr::w-1234****abcd:member/202265*****276",
"userName": "jia***test@195*****7311.onaliyun.com",
"displayName": "jia***test",
"userType": "MEMBER",
"roles": [
{
"roleArn": "acs:emr::w-1234****abcd:role/DataScience",
"roleName": "DataScience",
"description": "DataScience",
"createTime": 1753412502000,
"actions": [
{
"actionArn": "acs:emr::w-1234****abcd:action/add_MEMBER",
"actionName": "add",
"displayName": "add members",
"description": "add members\n",
"dependencies": [
"VIEW"
]
}
]
}
],
"actions": [
{
"actionArn": "acs:emr::w-1234****abcd:action/add_MEMBER",
"actionName": "add",
"displayName": "add members",
"description": "add members",
"dependencies": [
"VIEW"
]
}
],
"visible": true,
"createTime": "1753412502000"
}
],
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"nextToken": "1",
"maxResults": 20,
"totalCount": 200
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.