OBJECT

User

User class

link GraphQL Schema definition

  • type User {
  • # Auto-incrementing integer unique to user table. Generated automatically on
  • # create
  • id: Int
  • # The user’s name
  • title: String
  • # The user’s first name
  • first_name: String
  • # The user’s last name
  • last_name: String
  • # The user’s account requires mfa
  • mfa_enabled: Int
  • # The user’s role
  • role: String
  • # The user’s email address. Must be a valid email address
  • email: String
  • # The users session specific access token
  • access_token: String
  • # An array of businesses this user is assigned to
  • #
  • # Arguments
  • # id: [Not documented]
  • businesses(id: [Int]): [Business]
  • # An array of assigned objectives
  • #
  • # Arguments
  • # id: [Not documented]
  • objectives(id: [Int]): [Objective]
  • # The URL to the logo for the user’s profile picture, which is a 500px by 500px
  • # JPG file. Will be a blank string if the user hasn’t uploaded one yet
  • profile_img_url: String
  • # Returns a list of businesse accounts the user is connected to
  • #
  • # Arguments
  • # business_id: [Not documented]
  • accounts(business_id: [Int]): [Businessuser]
  • # Returns a list of teams the user is connected to
  • #
  • # Arguments
  • # ids: [Not documented]
  • teams(ids: [Int]): [Team]
  • # Returns a list of life areas for the user
  • life_areas: [Lifearea]
  • # Returns a list of tasks available to a user
  • all_tasks: [Task]
  • }