Mutation
Set User Role
Use the API to set user roles
Overview
The setUserRole
mutation allows for the updating of a user’s role within a team.
Arguments
user_id
String
requiredThe unique identifier of the user.
role
Role
requiredThe Role to be assigned to the user. Valid types for user are admin
and
user
Usage Example
To set a user’s role, provide the user’s ID and the desired role as arguments to the mutation. Here’s an example of how this mutation could be used:
Additional Resources
Was this page helpful?