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.
Input fields
role (
UserRoleType
)
Invited user role (one of: basic, normal, quality)
suppressNotifications (
Boolean
)
Determines if email notifications will be sent on action
updateUserId (
ID!
)
Update user id
Return fields
errors (
[AnyMutationError]
)
Mutation errors. Provides information about missing content or privilages
user (
User
)
Updated user