TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation User Groups Remove group member

Remove group member

On this page

GraphQL endpoint: /user

Removes a member from a group. Only group admins can remove members, and the last remaining admin cannot be removed.

Query

mutation ($groupId: ID!, $userId: ID!) {
  removeGroupUserMember(groupId: $groupId, userId: $userId) {
    status
  }
}

Variables

{
  "groupId": "00000000-0000-4000-8000-000000000002",
  "userId": "00000000-0000-4000-8000-000000000001"
}

Response

{
  "data": {
    "removeGroupUserMember": {
      "status": "OK"
    }
  }
}