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

TNID API documentation User Groups Update group member role

Update group member role

On this page

GraphQL endpoint: /user

Changes a group member's role (MEMBER or ADMIN). Only group admins can change roles, and the last remaining admin cannot be demoted.

Query

mutation ($groupId: ID!, $userId: ID!, $role: GroupRoleType!) {
  updateGroupUserMemberRole(groupId: $groupId, userId: $userId, role: $role) {
    status
  }
}

Variables

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

Response

{
  "data": {
    "updateGroupUserMemberRole": {
      "status": "OK"
    }
  }
}