Schema

Schema definition for User object

AttributeTypeDefinitionExample
idUUIDthe id of the usera9d0164d-22df-46c6-a836-1a3da5a470d8
identifierStringidentifier of the user, defaults to email[email protected]
emailEmailemail used for notification[email protected]
first_nameStringfirst name of userRicardo
last_nameStringlast name of userMontalban
adminBooleanis user an administrator?true

type UserAccount {
  id: UUID!
  identifier: String!
  email: String!
  first_name: String
  last_name: String
  admin: Boolean
}

type Query {
  # get user from uuid passed in (admin only)
  user(
    id: UUID!
  ): UserAccount 

  # get organization users. The organization comes from the token (admin only)
  organizationUsers(
    search_terms: String
    listFilter: ListFilter
  ): [UserAccount] 
}

type Mutation {

  createUser(
    email: String!
    first_name: String
    last_name: String
    # admin users can perform action like create user
    admin: Boolean
  ): UUID 
}