Qualio Docs

API Documentation from the Qualio Team

UpdateUser

Allows updating user role in the company. Required permission: userManagement (for API user, can be checked using me query)

Example usage:

mutation updateUser {
  updateUser(updateUserId:"UID", role: normal) {
    errors {
      __typename
    }
    user {
      fullName
      role
    }
  }
}

where

⚫ UID is id (can be obtained by users query) of a user which will be updated

⚫ role is a new user role

Returns user data. It is the same record which can be pulled from users query..

Note: this query may take time for a user which owns a significant number of documents/task or assigned actions.

Fields

errors ([AnyMutationError])

Mutation errors. Provides information about missing content or privilages

user (User)

Updated user