> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/007_groups/009__update_group_user_member_role.md).

# Update Group Member Role

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

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

```

## Variables

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

## Response

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