Users are the people who access the company's Stockpit account.
GraphQL
query {
User (id: 100012) {
id
label
first_name
last_name
email
active
lang
}
}
GraphQL
query {
Users {
data {
id
label
first_name
last_name
email
active
lang
}
}
}
id Unique identifier of the user
first_name First name of the user
last_name Last name of the user
email Email address of the user
active If true, the user is active
lang Language of the user (enum values : fr, en, ca)
created_at Date and time the user was created
updated_at Date and time the user was last updated
notifications List of the notifications of the user
two_factor_authentication If true, two-factor authentication is enabled for the user
active_user_profiles List of the active user profiles of the user
You can create filters based on following fields
id Example: {"column": "ID", "operator": "EQ", "value": 100012}
label Example: {"column": "LABEL", "operator": "LIKE", "value": "%john%"}
active Example: {"column": "ACTIVE", "operator": "EQ", "value": true}
first_name Example: {"column": "FIRST_NAME", "operator": "LIKE", "value": "%John%"}
last_name Example: {"column": "LAST_NAME", "operator": "LIKE", "value": "%Doe%"}
created_at Example: {"column": "CREATED_AT", "operator": "GT", "value": "2024-01-01 00:00:00"}
updated_at Example: {"column": "UPDATED_AT", "operator": "LT", "value": "2024-12-31 23:59:59"}
You can sort data based on following fields : id, label, first_name, last_name, email, lang, email_verified_at, created_at, updated_at
GraphQL
query Users(
$orderBy: [QueryUsersOrderByOrderByClause!],
$where: QueryUsersWhereWhereConditions,
$first: Int,
$page: Int
) {
Users(
orderBy: $orderBy
where: $where
first: $first
page: $page
) {
paginatorInfo {
total
count
currentPage
perPage
}
data {
id
label
first_name
last_name
email
active
lang
}
}
}
Variables (JSON)
{
"orderBy": [
{
"column": "CREATED_AT",
"order": "DESC"
}
],
"first": 50,
"page": 1
}
GraphQL
query Users(
$orderBy: [QueryUsersOrderByOrderByClause!],
$where: QueryUsersWhereWhereConditions,
$first: Int,
$page: Int
) {
Users(
orderBy: $orderBy
where: $where
first: $first
page: $page
) {
paginatorInfo {
total
}
data {
id
label
email
active
lang
}
}
}
JSON
{
"orderBy": [
{
"column": "CREATED_AT",
"order": "DESC"
}
],
"first": 50,
"page": 1,
"where": {
"AND": [
{
"AND": [
{
"column": "ACTIVE",
"operator": "EQ",
"value": true
},
{
"column": "CREATED_AT",
"operator": "GT",
"value": "2020-01-01 00:00:00"
}
]
}
]
}
}
JSON
{
"data": {
"Users": {
"paginatorInfo": {
"total": 1,
"count": 1,
"currentPage": 1,
"perPage": 50
},
"data": [
{
"id": 100012,
"label": "John Doe",
"email": "[email protected] ",
"active": true,
"lang": "fr"
}
]
}
}
}
id Unique identifier of the user
first_name First name of the user
last_name Last name of the user
email Email address of the user
active If true, the user is active
lang Language of the user (enum values : fr, en, ca)
created_at Date and time the user was created
updated_at Date and time the user was last updated
notifications List of the notifications of the user
two_factor_authentication If true, two-factor authentication is enabled for the user
active_user_profiles List of the active user profiles of the user
Value Description frFrench enEnglish caCatalan