INPUT_OBJECT

UpdateUserRolesInput

Input for the updateUserRoles mutation. Allows granular add/remove of specific roles without replacing all roles.

link GraphQL Schema definition

1input UpdateUserRolesInput {
4
2# The user's ID
3userId: ID!
7
5# Role IDs to add to the user. These are validated against enabled applications.
6addRoleIds: [ID!]
12
8# Role IDs to remove from the user. These are NOT validated against enabled
9# applications,
10# allowing removal of roles from disabled or legacy apps.
11removeRoleIds: [ID!]
17
13# Optionally, specify the organization to update roles for.
14# Required if the requester is super-admin and the user belongs to multiple
15# organizations.
16organizationId: ID
18}