List group members

Updated at:

Retrieves all members of a code group without pagination.

Applicable editions

Central edition, Region edition

Endpoints and authorization

  • Get the endpoint: Replace {domain} in the request syntax.
  • Get a personal access token.
  • Get the organizationId: Required only for the Central edition. Go to the Organization Administration console and find the organization ID on the Basic Information page.

Product

Resource

Required permission

Codeup

member

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/codeup/organizations/{organizationId}/groups/{groupId}/members

Region edition

GET https://{domain}/oapi/v1/codeup/groups/{groupId}/members

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Your personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

In

Required

Description

Example

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

60d54f3daccf2bbd6659f3ad

groupId

string

path

Yes

The group ID or its URL-encoded full path.

2813489 or 60de7a6852743a5162b5f957%2FDemoGroup

accessLevel

integer

query

No

Filters results by minimum access level. Valid values: 20 (viewer), 30 (developer), and 40 (administrator). Default: 0 (all members).

30

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/codeup/organizations/60d54f3daccf2bbd6659f3ad/groups/2813489/members?accessLevel=30' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/codeup/groups/2813489/members?accessLevel=30' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

array

The member list.

-

object

A member object.

accessLevel

integer

The member's access level. Valid values: 20 (viewer), 30 (developer), and 40 (administrator).

30

avatarUrl

string

The avatar URL.

https://example/example/w/100/h/100

expiresAt

string

The membership expiration date and time.

2024-10-05T15:30:45Z

id

integer

The unique internal identifier for the membership.

2813489

inheritedGroup

object

The group from which permissions are inherited. Returns null if the member is a direct member of the current group.

avatarUrl

string

The avatar URL.

https://example/example/w/100/h/100

fullPath

string

The full path of the namespace.

60de7a6852743a5162b5f957/parent-group

id

integer

The ID.

1

kind

string

The type, typically group.

group

name

string

The name.

ParentGroup

nameWithNamespace

string

The full name, including the namespace.

60de7a6852743a5162b5f957 / ParentGroup

parentId

integer

The ID of the parent group.

2

path

string

The path.

parent-group

pathWithNamespace

string

The full path.

60de7a6852743a5162b5f957/parent-group

visibility

string

The visibility level. May be empty for inherited memberships. Possible values: private, internal, or public.

private

webUrl

string

The web URL of the group page.

https://example.com/60de7a6852743a5162b5f957/parent-group

memberType

string

The member type. Valid values: USERS (user) and TEAMS (team). For teams, use the teamId.

USERS

name

string

The name of the member.

codeup-demo

state

string

The member state. active means the member can access resources, while blocked means they cannot.

active

teamId

string

The team ID if the member is a team. Returns null for individual users.

70d8ddd4-xxxx-xxxx-xxxx-46100efe985e

userId

string

The Alibaba Cloud DevOps user ID. Use this ID for Codeup API operations that require a user ID.

62c795xxxb468af8

username

string

The username of the member.

codeup-username

webUrl

string

The web URL of the member'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 API error codes, see the Error Code Center.