Skip to main content
MUTATION
addUserLocation(locationId: Int!, role: String, userId: String!): User

Arguments

locationId
Int!
required

Id of the site to assign the user to.

role
String

The user's role at the site, 'admin' or 'member', which is the default.

userId
String!
required

Id of the user to assign.

Returns

allowedLocations

Sites the user is assigned to. Empty if there are no site assignments.

avatarUrl
String

Relative URL of the user's profile photo.

department
String

Department.

email
String!

Work email address.

firstName
String!

Given name.

groups

Groups the user belongs to. Empty if there are no groups.

id
String!

Id of the user.

lastName
String!

Family name.

locationAssignments

The user's site assignments, each with the site and the user's role there. Empty if there are no site assignments.

name
String!

Full name.

role
String!

One of 'org:admin' (Admin) or 'org:member' (Member).

specialty
String

Specialty.

subSpecialty
String

Sub-specialty.

supervisor

The user's supervisor.

supervisorId
String

Id of the user's supervisor.

title
String

Job title.

Mutation
Variables
Response