deleteUser
Allows deleting user from the company. Required permission: userManagement (for API user, can be checked using me query)
Example usage:
mutation deleteUser {
deleteUser(deleteUserId:"DID",reassignUserId:"RID") {
status
errors {
__typename
}
}
}
where
â« DID is id (can be obtained by users query) of a user which will be deleted
â« RID is id (can be obtained by users query) of a user to whom all remaining actions (reviews, approvals) and items (documents and tasks) for a deleted user will be reassigned.
Returns status field. Only possible value is "Deleted".
Note: this query may take time for a user which owns a significant number of documents/task or assigned actions.
Input fields
ID!)
Delete user id
ID!)
All user actions will be reassigned to given user (user id)
Boolean)
Determines if email notifications will be sent on action
Return fields
[AnyMutationError])
Mutation errors. Provides information about missing content or privilages
String)
Delete status