List users¶
View users and pending invitations in the current workspace in pages, and filter by name, description or member status.
POST $CLOUDSIGMA_API_BASE/user/list
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl -X POST "$CLOUDSIGMA_API_BASE/user/list" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"page_size": 20
}'
Parameter |
Type |
Required |
Description |
|---|---|---|---|
page |
integer |
No |
Page number. |
page_size |
integer |
No |
Quantity per page. |
filters |
array |
No |
Filter criteria. |
filters[].name |
string |
Yes |
Filter field: name, name_description or status. |
filters[].values |
array of string |
Yes |
Filter value. The server uses the first value of each item. |
name Searches for usernames containing the specified text, case-insensitively. name_description Search for both username and description. status Exact match by status.
When reading the next page, add page to 1 and retain the original filter conditions. When the cumulative number reaches data.total, or data.user_list on the current page is empty, page turning will stop.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"total": 1,
"user_list": [
{
"id": "user-001",
"iam_user_id": "iam-user-001",
"name": "data_analyst",
"status": "enabled",
"created_at": "2026-08-01T09:00:00Z",
"updated_at": "2026-08-21T09:00:00Z",
"reserved": false,
"role_list": [],
"tag_list": []
}
]
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
object |
The data returned by this operation. |
|
integer |
The total number of users matching the filter criteria. |
|
array of object |
Users and pending invitations for the current page. |
|
string |
The user’s ID in the account system. Might be empty if the pending invitation has not yet completed mapping. |
|
string |
IAM user ID. |
|
string |
The user’s name in the workspace. |
|
string |
User Instructions. Omitted if no value. |
|
string |
User status: enabled, disabled, or pending. The values are |
|
string |
Creation time, using RFC 3339 format. |
|
string |
Update time, using RFC 3339 format. |
|
boolean |
Whether it is a reserved user. |
|
array of object |
The user’s direct role. |
|
integer |
ID of the current object. |
|
string |
The name of the current object. |
|
string |
status. The values are |
|
array of object |
User tag. |
|
integer |
ID of the current object. |
|
string |
Value. |
Error response¶
{
"code": "INVALID_ARGUMENT",
"msg": "请求参数无效",
"data": null
}
Field |
Type |
Description |
|---|---|---|
code |
string |
error code. |
msg |
string |
error message. |
data |
null |
—。 |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
401 |
|
Missing or invalid authentication credentials. |
Check the credential type, expiration, and authentication header. |
403 |
|
The current identity or active role does not have permission for this operation. |
Use an authorized identity or contact an administrator to grant access. |
404 |
|
The target object or required reference was not found. |
Verify the object identifier, workspace, and current status. |
409 |
|
Conflict in resource state, request payload, or concurrent modification. |
Re-read the current state and version, then handle according to the latest result. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |
503 |
|
A business, runtime, or authorization dependency is temporarily unavailable. |
After the dependency recovers, check existing results first instead of blindly repeating writes. |