Mutation
mutation AssignRolesToUser($input: AssignRolesToUserInput!) {
assignRolesToUser(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"userId": "id"
}
}Response
{
"data": {
"assignRolesToUser": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
assignRolesToUser
Assigns a role to a user in the workspace. Supply exactly one of roleKey (for built-in roles) or customRoleId (for custom roles) — not both. You can also set usingBillingRotaSeat to control whether the user occupies a billable seat on the billing rota. Requires the roles:assign permission.
MUTATION
assignRolesToUser(input: AssignRolesToUserInput!): AssignRolesToUserOutput!Arguments
input
required
Returns
error
Mutation
mutation AssignRolesToUser($input: AssignRolesToUserInput!) {
assignRolesToUser(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"userId": "id"
}
}Response
{
"data": {
"assignRolesToUser": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

