Help Center/ CodeArts Repo/ API Reference/ Historical APIs/ RepoMember/ Obtaining All Member Records in a Repository (Deprecated)
Updated on 2026-01-27 GMT+08:00

Obtaining All Member Records in a Repository (Deprecated)

Function

This API is used to obtain the member list of a specified repository and search for repository members by keyword.

This API has been deprecated. Use the API described in Obtaining the Repository Member List.

URI

GET /v1/repositories/{repository_uuid}/members

Table 1 Path parameters

Parameter

Mandatory

Type

Description

repository_uuid

Yes

String

Explanation

Repository UUID, which is obtained by calling the API in Creating a Project and Repository. The returned repositoryUuid field is the UUID.

Constraints

This field needs to be obtained by calling the API in Creating a Project and Repository.

Range

32 digits and letters.

Default value

None.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

page_index

No

Integer

Explanation

Page index.

Constraints

None.

Range

1–2147483647

Default value

None.

page_size

No

Integer

Explanation

Number of repository members displayed on each page.

Constraints

None.

Range

1–100

Default value

100

subject

No

String

Explanation

Keyword for fuzzy search by username, user alias, and tenant name.

Constraints

None.

Range

128 characters.

Default value

None.

Request Parameters

Table 3 Request header parameter

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Explanation

User token. It can be obtained by calling the corresponding IAM API. The value of X-Subject-Token in the response header is the user token.

Constraints

None.

Range

String length: 1–100,000 characters.

Default value

None.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

error

Error object

Explanation

Response error code.

result

RepositoryMemberList object

Explanation

Response result.

status

String

Explanation

Response status of the API.

Range

  • success: The API call is successful.
  • failed: The API call failed.
Table 5 Error

Parameter

Type

Description

code

String

Explanation

Error code.

Range

Max. 100 characters in the error code format.

message

String

Explanation

Error message.

Range

None.

Table 6 RepositoryMemberList

Parameter

Type

Description

total

Integer

Total number of repository members.

users

Array of RepositoryMember objects

Repository member list.

Table 7 RepositoryMember

Parameter

Type

Description

description

String

Explanation

Repository member description.

Range

domain_id

String

Explanation

Tenant ID.

Range

String length: 8 or 32 characters.

domain_name

String

Explanation

Tenant name.

Range

email

String

Explanation

Email address of the repository member.

enabled

String

Explanation

Whether a member is available.

Range

name

String

Username.

role

Integer

Repository user permission: 30: Common member. 40: Administrator.

user_id

String

User ID.

Minimum length: 4

Maximum length: 32

iam_id

String

IAM user ID

Minimum length: 16

Maximum length: 32

Example Requests

GET https://{endpoint}/v1/repositories/{repository_uuid}/members

Example Responses

Status code: 200

OK

{
  "result" : {
    "total" : 2,
    "users" : [ {
      "user_id" : "5836",
      "name" : "repo",
      "domain_name" : "repo",
      "description" : null,
      "enabled" : null,
      "role" : 40,
      "domain_id" : "159b65b41ead484d8ddff250a4731781",
      "email" : null
    }, {
      "user_id" : "6057",
      "name" : "repo",
      "domain_name" : "repo",
      "description" : null,
      "enabled" : null,
      "role" : 30,
      "domain_id" : "159b65b41ead484d8ddff250a4731781",
      "email" : null
    } ]
  },
  "status" : "success"
}

Status Code

Status Code

Description

200

OK

Error Codes

See Error Codes.