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
Variables
Response
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Assigns a role to a user, granting them a set of permissions.
attachRoleToUser(input: RoleToUserInput!): AttachRoleToUsermutation AttachRoleToUser($input: RoleToUserInput!) {
attachRoleToUser(input: $input) {
roleId
userId
}
}{
"input": {
"roleId": 1,
"userId": "id"
}
}{
"data": {
"attachRoleToUser": {
"roleId": 1,
"userId": 1
}
}
}Was this page helpful?
mutation AttachRoleToUser($input: RoleToUserInput!) {
attachRoleToUser(input: $input) {
roleId
userId
}
}{
"input": {
"roleId": 1,
"userId": "id"
}
}{
"data": {
"attachRoleToUser": {
"roleId": 1,
"userId": 1
}
}
}Suggestions