Remove group member
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"
}
}
}Last updated
Was this helpful?