Menu
users
Search for User entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the users action (under Users).
- Fill in the fields below, then reference the result from later steps as
{{users.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query Users($after: String, $before: String, $country: [String], $createdOn: DateRange, $department: [String], $first: Int, $firstName: [String], $last: Int, $lastName: [String], $primaryEmail: [String], $primaryPhone: [String], $promotionOptIn: [Boolean], $ref: [String!], $status: [String], $timezone: [String], $title: [String], $type: [String!], $updatedOn: DateRange, $username: [String!]) {
users(
after: $after
before: $before
country: $country
createdOn: $createdOn
department: $department
first: $first
firstName: $firstName
last: $last
lastName: $lastName
primaryEmail: $primaryEmail
primaryPhone: $primaryPhone
promotionOptIn: $promotionOptIn
ref: $ref
status: $status
timezone: $timezone
title: $title
type: $type
updatedOn: $updatedOn
username: $username
) {
edges {
cursor
node {
apps
attributes
country
createdOn
department
firstName
id
language
lastName
primaryEmail
primaryLocation
primaryPhone
primaryRetailer
promotionOptIn
ref
roles
status
timezone
title
type
updatedOn
username
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"after": "string",
"before": "string",
"country": [
"string"
],
"createdOn": {
"from": "string",
"to": "string"
},
"department": [
"string"
],
"first": 0,
"firstName": [
"string"
],
"last": 0,
"lastName": [
"string"
],
"primaryEmail": [
"string"
],
"primaryPhone": [
"string"
],
"promotionOptIn": [
false
]
}
Response
Read the result with {{users.response.data.data.users}}. If the API returns errors, the step fails and they are at {{users.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?