Mutation
mutation UpdateRolePriorityOrder($input: UpdateRolePriorityOrderInput!) {
updateRolePriorityOrder(input: $input) {
roles {
id
name
description
permissions
isAssignableToCustomer
isAssignableToThread
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"roles": [
{}
]
}
}Response
{
"data": {
"updateRolePriorityOrder": {
"roles": [
{
"id": "id",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"isAssignableToCustomer": true,
"isAssignableToThread": true
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateRolePriorityOrder
Sets the order in which roles win when a user is given more than one through SSO or directory sync. Custom roles can be placed anywhere below the admin role and above the none role. Requires the roles:edit permission.
MUTATION
updateRolePriorityOrder(input: UpdateRolePriorityOrderInput!): UpdateRolePriorityOrderOutput!Arguments
input
required
Returns
roles
[Role!]!
Every role in the workspace, highest priority first. Empty when the update failed.
error
Mutation
mutation UpdateRolePriorityOrder($input: UpdateRolePriorityOrderInput!) {
updateRolePriorityOrder(input: $input) {
roles {
id
name
description
permissions
isAssignableToCustomer
isAssignableToThread
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"roles": [
{}
]
}
}Response
{
"data": {
"updateRolePriorityOrder": {
"roles": [
{
"id": "id",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"isAssignableToCustomer": true,
"isAssignableToThread": true
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

