Lists users that can be added as members to a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:ListWorkspaceUsers |
list |
*Workspace
|
None | None |
Request syntax
GET /api/v1/workspaces/{WorkspaceId}/users HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
No |
The workspace ID. For more information, see ListWorkspaces. |
12345 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserName |
string |
No |
The display name of the user that can be added as a workspace member. |
doctest**** |
| UserId |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
1e195c5116124202371861018d5bde |
| TotalCount |
integer |
The number of users that meet the filter condition. |
2 |
| Users |
array<object> |
The list of users. |
|
|
object |
The user. |
||
| UserId |
string |
The user ID. |
1611******3000 |
| UserName |
string |
The username. |
she******mo |
Examples
Success response
JSON format
{
"RequestId": "1e195c5116124202371861018d5bde",
"TotalCount": 2,
"Users": [
{
"UserId": "1611******3000",
"UserName": "she******mo"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.