> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# updateUser

> Changes the role of an active member of a workspace. It acts on the workspace the API key targets: a workspace key's own, or the one in the `X-Paradime-Workspace` header. Needs `users:admin:write`.



**mutation** `updateUser(input: UpdateUserInput!): UpdateUserPayload!`

## Arguments

**`input`**: `UpdateUserInput!` (required)

The user and their new role.

## Returns

`UpdateUserPayload!`

**`user`**: `User!`

The user, with their new role.

## Examples

```graphql Mutation
mutation UpdateUser($input: UpdateUserInput!) {
  updateUser(input: $input) {
    user {
      email
      uid
      fullName
      accountType
      status
      inviteStatus
    }
  }
}
```

```json Variables
{
  "input": {
    "uid": "string",
    "accountType": "ADMIN"
  }
}
```

```json Response
{
  "data": {
    "updateUser": {
      "user": {
        "email": "string",
        "uid": "string",
        "fullName": "string",
        "accountType": "ADMIN",
        "status": "ACTIVE",
        "inviteStatus": "PENDING"
      }
    }
  }
}
```


## Related topics

- [Administration API: Users](https://docs.paradime.io/developers/graphql-api/admin-api/users.md)
- [User Management](https://docs.paradime.io/developers/python-sdk/modules/user-management.md)
- [User Management API](https://docs.paradime.io/developers/graphql-api/api-reference/user-management-api.md)
- [Admin CLI](https://docs.paradime.io/developers/paradime-cli/admin-cli.md)
- [Column-Level Lineage Diff on Azure DevOps](https://docs.paradime.io/products/bolt/ci-cd/lineage-diff/azure-devops.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.