List project members

Updated at:

Applicable editions

Central edition, Region edition

Service endpoints and authorization

Product

Resource

Required permission

Project Collaboration

project member

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/{id}/members

Region edition

GET https://{domain}/oapi/v1/projex/projects/{id}/members

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

The personal access token.

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

Request parameters

Parameter

Type

In

Required

Description

Example

id

string

path

Yes

The unique identifier of the project.

589c53d622cc8521793e08****

name

string

query

No

Filters results by name.

test

roleId

string

query

No

Filters results by role ID. For example, use project.admin for administrators.

project.admin

organizationId

string

path

  • Required for Central edition

  • Optional for Region edition

The ID of the organization.

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/projects/589c53d622cc8521793e08****/members?name=test&roleId=project.admin' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/projects/589c53d622cc8521793e08****/members?name=test&roleId=project.admin' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

array

An array of project member objects.

-

object

A project member object.

roleId

string

The unique identifier of the role.

project.admin

roleName

string

The name of the role.

Administrator

userAvatar

string

The user's avatar URL.

xxx

userId

string

The unique identifier of the user.

user-xxx

userName

string

The name of the user.

user-test

Response example

[
    {
        "roleId": "project.admin",
        "roleName": "Administrator",
        "userAvatar": "xxx",
        "userId": "user-xxx",
        "userName": "user-test"
    }
]

Error codes

For error codes, see the Error Code Center.