文档

ListProjectMembers - 获取项目成员

更新时间:

获取项目成员。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /organization/{organizationId}/projects/{projectId}/listMembers

请求参数

名称类型必填描述示例值
organizationIdstring

企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】

5ebbc0228123212b59xxxxx
projectIdstring

项目 id,同 spaceIdentifier

e8bxxxxx2abd6e76aa209b07d23
targetTypestring

请求资源的类型,这里填 Space 即可。

Space

返回参数

名称类型描述示例值
object
requestIdstring

请求 id,每次请求都是唯一值,便于后续排查问题

ASSDS-ASSASX-XSAXSA-XSAXSAXS
errorMsgstring

错误信息

error
errorCodestring

错误码

Openapi.RequestError
successboolean

true 或者 false

true
membersobject []

member 信息

accountstring

登录账号

null
avatarstring

用户头像

https://xxxxxx.png
dingTalkIdstring

钉钉 id

null
displayNamestring

展示名

名称
displayNickNamestring

展示昵称

mingcheng
displayRealNamestring

展示真名

名称
divisionobject

部门信息

identifierstring

部门唯一标识

1345xxxxxxx947xxxx
emailstring

邮箱

accountsxxxx@mail.com
genderstring

性别

null
identifierstring

用户唯一 标识符

19xxxx31947xxxx
mobilestring

手机号

135xxxxxxxxx
nameEnstring

英文名

name
nickNamestring

昵称

昵称
nickNamePinyinstring

昵称拼音

nicheng
organizationUserInfoobject

企业信息

organizationIdentifierstring

企业唯一标识符

5e7xxxxb3cd3711dd6xxx2c
realNamestring

真名

xxx
realNamePinyinstring

真名拼音

xxx
stampstring

用户类型,返回 User、UserGroup,表示是用户或是用户组

User
tbRoleIdstring

角色 id

null
roleNamestring

角色名称

示例

正常返回示例

JSON格式

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "errorMsg": "error",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "members": [
    {
      "account": "null",
      "avatar": "https://xxxxxx.png",
      "dingTalkId": "null",
      "displayName": "名称",
      "displayNickName": "mingcheng",
      "displayRealName": "名称",
      "division": {
        "identifier": "1345xxxxxxx947xxxx"
      },
      "email": "accountsxxxx@mail.com",
      "gender": "null",
      "identifier": "19xxxx31947xxxx",
      "mobile": "135xxxxxxxxx",
      "nameEn": "name",
      "nickName": "昵称",
      "nickNamePinyin": "nicheng",
      "organizationUserInfo": {
        "organizationIdentifier": "5e7xxxxb3cd3711dd6xxx2c"
      },
      "realName": "xxx",
      "realNamePinyin": "xxx",
      "stamp": "User",
      "tbRoleId": "null",
      "roleName": ""
    }
  ]
}

错误码

HTTP status code错误码错误信息描述
400Openapi.RequestErrorrequest errorOpenAPI请求数据错误
403Operate.NoPermissionNoPermission没有权限
404InvaildSpace.NotInCurrentOrganizationspace not belong to this organization, please switch organization.不属于当前企业,您可以点击右上角切换企业查看

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈