Use the API to set user roles
setUserRole
mutation allows for the updating of a user’s role within a team.
setUserRole
mutation. Full list of error codes can be found here.
object_not_found (team)
This may indicate that you are not a part of any team. Please contact support if you encounter this error
not_in_team
The user ID you are trying to query is not in your team.
require_elevated_privilege
The user does not have admin privileges to set the user role.
admin_must_exist
The team must have at least one admin. Please add an admin to the team or contact support if you encounter this error.
invalid_args
An invalid argument was provided to the mutation for the role
field. Please check the arguments you are providing and try again.