To invite a user to a project, you can use the following mutation:
mutation {
inviteUser(
input: {
email: "[email protected]"
projectId: "YOUR PROJECT ID OR SLUG"
accessLevel: "ADMIN"
roleId: "YOUR CUSTOM ROLE ID"
}
)
}
There are six predefined user roles in Blue:
When inviting a user to a project, you can specify one of these roles using the accessLevel
parameter in the mutation.
If you have created custom user roles for your project, you should use "MEMBER" as the accessLevel
and provide the roleId
of your custom role. Here's an example: