Get¶
GET /api/v1/workspace/member_group/get
Overview¶
Reads the specified team along with its selected members, available members, and roles, or reads the member candidates used when creating a team.
Before You Call and Usage Steps¶
Query groupUUID comes from Team List. Passing a valid UUID returns the team entity, groupMembers, membersNotInGroup, and roleInfos; when omitted or set to an empty string, it returns the candidate structure for team creation, which does not include entity fields such as uuid or name, and all currently valid members are in membersNotInGroup. Members that exist but are invalid or have left the workspace are not returned as available member profiles.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with the required permission for this operation from API Key management in the target workspace. |
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| groupUUID | string | Optional team UUID; when omitted or set to an empty string, all available members are returned. Example: group_exampleHow to obtain or fill in: Obtain the team UUID from content[].uuid in the Team List. Can be omitted when preparing members for a new team. |
Additional Parameter Notes¶
When modifying, construct accountUUIDs from groupMembers[].uuid and obtain the returned roles from roleInfos[].uuid. The role summary may lack the existing roles of an empty team; verify them separately before modifying to avoid accidentally clearing them with [].
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/workspace/member_group/get' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode groupUUID=group_example
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | Team details or creation candidates. Entity fields exist only when a valid groupUUID is specified. |
| content.id | integer | Database record ID; use uuid for operations. |
| content.uuid | string | Team UUID. |
| content.name | string | Team name. |
| content.workspaceUUID | string | UUID of the workspace the team belongs to. |
| content.status | integer | 0 for an active team. |
| content.creator | string | Creating identity. |
| content.updator | string | Updating identity; can be empty. |
| content.createAt | integer | Creation time in Unix seconds. |
| content.updateAt | integer | Entity update time in Unix seconds; -1 if never updated. The current modification does not guarantee that this field is updated, so it cannot be used to determine whether members or roles have changed. |
| content.deleteAt | integer | Deletion time in Unix seconds; -1 if not deleted. |
| content.groupMembers | array<object> |
Members still valid in the team, sorted by association creation time in descending order. |
| content.membersNotInGroup | array<object> |
Candidates among the workspace's valid members that have not yet joined this team. |
| content.roleInfos | array<object> |
Role summary; currently, teams with no members may show this as empty, which does not imply that no roles are configured. |
| content.declaration | object or null | Workspace public declaration. |
| content.groupMembers[].uuid | string | Member account UUID. |
| content.groupMembers[].name | string | Account display name. |
| content.groupMembers[].email | string | Account email. |
| content.groupMembers[].acntWsNickname | string | Nickname in this workspace; an empty string if not set. |
| content.membersNotInGroup[].uuid | string | Member account UUID. |
| content.membersNotInGroup[].name | string | Account display name. |
| content.membersNotInGroup[].email | string | Account email. |
| content.membersNotInGroup[].acntWsNickname | string | Nickname in this workspace; an empty string if not set. |
| content.roleInfos[].uuid | string | Role UUID or built-in role identifier, which can be used as a roleUUIDs element. |
| content.roleInfos[].name | string | Role display name. |
{
"code": 200,
"content": {
"id": 42,
"uuid": "group_example",
"name": "生产运维",
"workspaceUUID": "wksp_example",
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"groupMembers": [
{
"uuid": "acnt_example",
"name": "运维成员",
"email": "xxx@guance.com",
"acntWsNickname": ""
}
],
"membersNotInGroup": [],
"roleInfos": [
{
"uuid": "role_example",
"name": "运维只读"
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Creating a team candidate call (no groupUUID)
{
"code": 200,
"content": {
"groupMembers": [],
"membersNotInGroup": [
{
"uuid": "acnt_example",
"name": "运维成员",
"email": "xxx@guance.com",
"acntWsNickname": ""
}
],
"roleInfos": [],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | An undeclared Query parameter is used or a parameter violates the rules | Parameter parsing failed | Check the Query parameter table and examples. |
| 404 | ft.MemberGroupNoExists | The target team does not exist, has been deleted, or is not in this workspace | Team does not exist | Copy the active team UUID again from the Team List. |
| 500 | ft.InternalServerError | Failed to read the team or member profiles | Internal error | Check the UUID and contact support with the traceId. |