ListRepositoryMembers
Retrieves all members of a specified repository without pagination.
|
Applicable editions |
Central edition, Region edition |
Service endpoint and authorization
- Get the service endpoint to replace the
{domain}placeholder in the request syntax. - Get a personal access token.
- Get your organization ID, which is required only for the Central edition. You can find it on the Basic Information page in Organization settings.
|
Product |
Resource |
Required permission |
|
Codeup |
member |
read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/codeup/organizations/{organizationId}/repositories/{repositoryId}/members
Region edition
GET https://{domain}/oapi/v1/codeup/repositories/{repositoryId}/members
Request header
|
Parameter |
Type |
Required |
Description |
Example value |
|
x-yunxiao-token |
string |
Yes |
The personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example value |
|
organizationId |
string |
path |
|
The organization ID. |
60d54f3daccf2bbd6659f3ad |
|
repositoryId |
string |
path |
Yes |
The ID of the repository or its URL-encoded full path. |
2813489 or 60de7a6852743a5162b5f957%2FDemoRepo |
|
accessLevel |
integer |
query |
No |
The minimum access level of members to return. Default: |
40 |
Request example
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/codeup/organizations/60d54f3daccf2bbd6659f3ad/repositories/60de7a6852743a5162b5f957%2FDemoRepo/members?accessLevel=40' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'GET' \
'https://{domain}/oapi/v1/codeup/repositories/60de7a6852743a5162b5f957%2FDemoRepo/members?accessLevel=40' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
| - |
array |
The list of members. |
|
| - |
object |
A member object. |
|
| accessLevel |
integer |
The member's access level. Valid values: |
30 |
| avatarUrl |
string |
The avatar URL. |
https://example/example/w/100/h/100 |
| expiresAt |
string |
The membership expiration time. |
2024-10-05T15:30:45Z |
| id |
integer |
The unique ID of the member entry. This ID has no business meaning. |
2813489 |
| inheritedGroup |
object |
The group from which the member inherits access. Null if the member is added directly to the repository. |
|
| avatarUrl |
string |
The avatar URL. |
https://example/example/w/100/h/100 |
| fullPath |
string |
The full path of the group. |
60de7a6852743a5162b5f957/parent-group |
| id |
integer |
The ID of the group. |
1 |
| kind |
string |
The entity type. Typically |
group |
| name |
string |
The name of the group. |
ParentGroup |
| nameWithNamespace |
string |
The full name, including the namespace. |
60de7a6852743a5162b5f957 / ParentGroup |
| parentId |
integer |
The parent group ID. |
2 |
| path |
string |
The path of the group. |
parent-group |
| pathWithNamespace |
string |
The full path, including the namespace. |
60de7a6852743a5162b5f957/parent-group |
| visibility |
string |
The visibility level. Can be null in inheritance scenarios. Possible values: |
private |
| webUrl |
string |
The URL of the group's web page. |
https://example.com/60de7a6852743a5162b5f957/parent-group |
| memberType |
string |
The member type: |
USERS |
| name |
string |
The name of the member. |
codeup-demo |
| state |
string |
The state of the member. Valid values: |
active |
| teamId |
string |
The team ID. Present only when |
70d8ddd4-xxxx-xxxx-xxxx-46100efe985e |
| userId |
string |
The Alibaba Cloud DevOps user ID. Use this ID in other Codeup API requests that require a user ID. |
62c795xxxb468af8 |
| username |
string |
The username. |
codeup-username |
| webUrl |
string |
The URL of the user's profile page. |
https://example.com/users/codeup-username |
Response example
[
{
"accessLevel": 30,
"avatarUrl": "https://example/example/w/100/h/100",
"expiresAt": "2024-10-05T15:30:45Z",
"id": 2813489,
"inheritedGroup": {
"avatarUrl": "https://example/example/w/100/h/100",
"fullPath": "60de7a6852743a5162b5f957/parent-group",
"id": 1,
"kind": "group",
"name": "ParentGroup",
"nameWithNamespace": "60de7a6852743a5162b5f957 / ParentGroup",
"parentId": 2,
"path": "parent-group",
"pathWithNamespace": "60de7a6852743a5162b5f957/parent-group",
"visibility": "private",
"webUrl": "https://example.com/60de7a6852743a5162b5f957/parent-group"
},
"memberType": "USERS",
"name": "codeup-demo",
"state": "active",
"teamId": "70d8ddd4-xxxx-xxxx-xxxx-46100efe985e",
"userId": "62c795xxxb468af8",
"username": "codeup-username",
"webUrl": "https://example.com/users/codeup-username"
}
]
Error codes
For error codes, see the Error Code Center.