create_grower_user
Create a grower user.
Input fields
String!)
The email of the user. Maximum 255 characters.
String!)
The first name of the user. Maximum 255 characters.
String!)
The last name of the user. Maximum 255 characters.
ID!)
The ID of the grower organization this user is associated with.
Return fields
String)
User address line 1.
String)
User address line 2.
String)
User city.
String!)
User country code (ISO 3166-1).
String!)
The email address for the user.
Boolean!)
Has this user's employer opted into the enterprise license agreement.
String!)
The first name of the user.
String)
The last name of the user.
UserLicense!)
The type of license currently assigned to the user.
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!)
The organization this user belongs to.
JSON!)
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.
String)
The phone number for the user.
UserPreferences!)
The app preferences for this user.
[UserRole!]!)
An array of all of the user's roles.
ID!)
A system-generated key identifying a specific instance of a user.
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. |
String)
User state/province/region code (ISO 3166-2).
UserStatus!)
The current status of the user.
String)
User zip code.
Examples
Create Grower User
Creates a user with a grower role.
Try this example in GraphiQLmutation 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"
}
}
}