create_grower_user

Create a grower user.

Input fields

email (String!)

The email of the user. Maximum 255 characters.

first_name (String!)

The first name of the user. Maximum 255 characters.

last_name (String!)

The last name of the user. Maximum 255 characters.

organization_sentera_id (ID!)

The ID of the grower organization this user is associated with.

Return fields

address_1 (String)

User address line 1.

address_2 (String)

User address line 2.

city (String)

User city.

country_code (String!)

User country code (ISO 3166-1).

email (String!)

The email address for the user.

enterprise_license_agreement (Boolean!)

Has this user's employer opted into the enterprise license agreement.

first_name (String!)

The first name of the user.

last_name (String)

The last name of the user.

license_type (UserLicense!)

The type of license currently assigned to the user.

logos (LogosQueryResult)

A list of logos for this user.

Argument Type Description
pagination Pagination!

Paginate the results.

sentera_id ID

Retrieve the logo with the given Sentera ID.

organization (Organization!)

The organization this user belongs to.

organization_maps (JSON!)
Deprecation notice

Please use the organizations query instead to build the organization hierarchy.

A list of organization hierarchies comprised of the user's home organization and any organizations the user is partnered with, returned as a JSON array of hashes. Available keys in each hash are sentera_id (string), name (string) and children (array). This structure is recursive.

phone_number (String)

The phone number for the user.

preferences (UserPreferences!)

The app preferences for this user.

roles ([UserRole!]!)

An array of all of the user's roles.

sentera_id (ID!)

A system-generated key identifying a specific instance of a user.

signatures (SignaturesQueryResult)

A list of signatures for this user.

Argument Type Description
pagination Pagination!

Paginate the results.

sentera_id ID

Retrieve the signature with the given Sentera ID.

state (String)

User state/province/region code (ISO 3166-2).

status (UserStatus!)

The current status of the user.

zip_code (String)

User zip code.

Examples

Create Grower User

Creates a user with a grower role.

Try this example in GraphiQL
mutation CreateGrowerUser {
  create_grower_user(
  organization_sentera_id: "ae15xz8_OR_kobccheckpers_CV_deve_5a3e89b12_220309_073119",
  email: "example@email.com",
  first_name: "Grower",
  last_name: "User"
  ) {
  sentera_id
  }
}

{
  "data": {
  "create_grower_user": {
    "sentera_id": "0aogyuz_US_gnkwAcmeOrg_CV_deve_88b6e801_181127_161859"
  }
  }
}