Skip to main content
MUTATION
inviteUserToOrg(email: String!, firstName: String, lastName: String, locationAssignments: [LocationAssignmentInput!], locationIds: [Int!], resend: Boolean, role: String!): Boolean!

Arguments

email
String!
required

Email address to invite.

firstName
String

First name of the person invited.

lastName
String

Last name of the person invited.

locationAssignments

Sites, each with a role, to assign the person to when they join.

locationIds
[Int!]

Ids of the sites to assign the person to as a member, ignored when locationAssignments is given.

resend
Boolean

True to withdraw the pending invitation for this email and send a new one.

role
String!
required

Role the person gets in the organization, 'org:admin' or 'org:member'.

Returns

Boolean!
Mutation
Variables
Response