获取项目成员。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /organization/{organizationId}/projects/{projectId}/listMembers HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| organizationId |
string |
是 |
企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】 |
5ebbc0228123212b59xxxxx |
| projectId |
string |
是 |
项目 id,同 spaceIdentifier |
e8bxxxxx2abd6e76aa209b07d23 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| targetType |
string |
是 |
请求资源的类型,这里填 Space 即可。 |
Space |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| requestId |
string |
请求 id,每次请求都是唯一值,便于后续排查问题 |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorMsg |
string |
错误信息 |
error |
| errorCode |
string |
错误码 |
Openapi.RequestError |
| success |
boolean |
true 或者 false |
true |
| members |
array<object> |
member 信息 |
|
|
array<object> |
|||
| account |
string |
登录账号 |
null |
| avatar |
string |
用户头像 |
https://xxxxxx.png |
| dingTalkId |
string |
钉钉 id |
null |
| displayName |
string |
展示名 |
名称 |
| displayNickName |
string |
展示昵称 |
mingcheng |
| displayRealName |
string |
展示真名 |
名称 |
| division |
object |
部门信息 |
|
| identifier |
string |
部门唯一标识 |
1345xxxxxxx947xxxx |
|
string |
邮箱 |
accountsxxxx@mail.com |
|
| gender |
string |
性别 |
null |
| identifier |
string |
用户唯一 标识符 |
19xxxx31947xxxx |
| mobile |
string |
手机号 |
135xxxxxxxxx |
| nameEn |
string |
英文名 |
name |
| nickName |
string |
昵称 |
昵称 |
| nickNamePinyin |
string |
昵称拼音 |
nicheng |
| organizationUserInfo |
object |
企业信息 |
|
| organizationIdentifier |
string |
企业唯一标识符 |
5e7xxxxb3cd3711dd6xxx2c |
| realName |
string |
真名 |
xxx |
| realNamePinyin |
string |
真名拼音 |
xxx |
| stamp |
string |
用户类型,返回 User、UserGroup,表示是用户或是用户组 |
User |
| tbRoleId |
string |
角色 id |
null |
| roleName |
string |
角色名称 |
管理员 |
示例
正常返回示例
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 |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Openapi.RequestError | request error | OpenAPI请求数据错误 |
| 403 | Operate.NoPermission | NoPermission | 没有权限 |
| 404 | InvaildSpace.NotInCurrentOrganization | space not belong to this organization, please switch organization. | 不属于当前企业,您可以点击右上角切换企业查看 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。