List users

View users and pending invitations in the current workspace in pages, and filter by name, description or member status.

HTTP
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

Shell
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

JSON
{
  "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

code

string

success code.

msg

string

Response information.

data

object

The data returned by this operation.

data.total

integer

The total number of users matching the filter criteria.

data.user_list

array of object

Users and pending invitations for the current page.

data.user_list[].id

string

The user’s ID in the account system. Might be empty if the pending invitation has not yet completed mapping.

data.user_list[].iam_user_id

string

IAM user ID.

data.user_list[].name

string

The user’s name in the workspace.

data.user_list[].description

string

User Instructions. Omitted if no value.

data.user_list[].status

string

User status: enabled, disabled, or pending. The values are enabled, disabled, pending

data.user_list[].created_at

string

Creation time, using RFC 3339 format.

data.user_list[].updated_at

string

Update time, using RFC 3339 format.

data.user_list[].reserved

boolean

Whether it is a reserved user.

data.user_list[].role_list

array of object

The user’s direct role.

data.user_list[].role_list[].id

integer

ID of the current object.

data.user_list[].role_list[].name

string

The name of the current object.

data.user_list[].role_list[].status

string

status. The values are enabled, disabled

data.user_list[].tag_list

array of object

User tag.

data.user_list[].tag_list[].id

integer

ID of the current object.

data.user_list[].tag_list[].value

string

Value.

Error response

JSON
{
  "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_ARGUMENT, ErrParamInvalid, ErrIAMInheritanceInvalid, ErrIAMRoleLifecycleInvalid, ErrIAMRoleDeleteInvalid

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

401

Unauthorized

Missing or invalid authentication credentials.

Check the credential type, expiration, and authentication header.

403

ErrForbidden, ErrWorkspaceAccessDenied, IAM_ERROR_CODE_PERMISSION_DENIED

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

USER_NOT_FOUND, ErrNotFound, ErrIAMResourceNotFound, IAM_ERROR_CODE_RESOURCE_NOT_FOUND

The target object or required reference was not found.

Verify the object identifier, workspace, and current status.

409

IAM_ERROR_CODE_IDEMPOTENCY_CONFLICT, IAM_ERROR_CODE_LIFECYCLE_CONFLICT, ErrIAMInheritanceConflict, ErrIAMRoleDeleteConflict, ErrIAMRoleDeleteResultUnknown, ErrIAMWorkspaceMemberLifecycleResultUnknown

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, ErrIAMRoleDeleteFailed, ErrIAMWorkspaceMemberLifecycleFailed, ErrIAMWorkspaceMemberLifecycleIncomplete, ErrIAMRoleWriteFailed

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

503

ErrCoreAuthorizeUnavailable, IAM_ERROR_CODE_CORE_AUTHORIZE_UNAVAILABLE, ErrIAMRoleReadUnavailable, ErrIAMRolePermissionViewUnavailable, ErrIAMRoleInheritanceUnavailable, ErrIAMRoleAdministrationUnavailable

A business, runtime, or authorization dependency is temporarily unavailable.

After the dependency recovers, check existing results first instead of blindly repeating writes.

Last updated on