Mutations
attachRoleToUser
Assigns a role to a user, granting them a set of permissions.
MUTATION
attachRoleToUser(input: RoleToUserInput!): AttachRoleToUserArguments
input
required
Returns
roleId
Int
userId
Int
Mutation
mutation AttachRoleToUser($input: RoleToUserInput!) {
attachRoleToUser(input: $input) {
roleId
userId
}
}Variables
{
"input": {
"roleId": 1,
"userId": "id"
}
}Response
{
"data": {
"attachRoleToUser": {
"roleId": 1,
"userId": 1
}
}
}Was this page helpful?
⌘I
Mutation
mutation AttachRoleToUser($input: RoleToUserInput!) {
attachRoleToUser(input: $input) {
roleId
userId
}
}Variables
{
"input": {
"roleId": 1,
"userId": "id"
}
}Response
{
"data": {
"attachRoleToUser": {
"roleId": 1,
"userId": 1
}
}
}