younifyd
Menu

Get Users

List Users

GET/users

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Get Users action (under Users).
  3. Fill in the fields below, then reference the result from later steps as {{getUsers.response.data}}.

Request

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

limitinteger

A limit on the number of objects that are returned.

offsetinteger

How many items to skip when fetching data.

metastring

What metadata to return in the response.

sortarray<string>

How to sort the returned items. `sort` is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (` - `) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV.

filterany

Select items in collection by given conditions.

searchstring

Filter by items that contain the given search query in one of their fields.

Response

Returns 200 with an object. Read it in later steps with {{getUsers.response.data.<field>}}.

dataarray<object>
idstring

Unique identifier for the user.

first_namestring

First name of the user.

last_namestring

Last name of the user.

emailstring (email)

Unique email address for the user.

passwordstring (string)

Password of the user.

locationstring

The user's location.

titlestring

The user's title.

descriptionstring

The user's description.

tagsarray<string>

The user's tags.

avatarstring

The user's avatar. Many-to-one to files.

languagestring

The user's language used in Directus. Language the Data Studio is rendered in. See our Crowdin page for all available languages and translations.

tfa_secretstring

The 2FA secret string that's used to generate one time passwords.

statusstring

Status of the user.

One ofactiveinviteddraftsuspendeddeleted

rolestring

Unique identifier of the role of this user. Many-to-one to roles.

tokenstring

Static token for the user.

policiesstring

The policies associated with this user. Many-to-many to policies.

last_accessstring (date-time)

When this user used the API last.

last_pagestring

Last page that the user was on.

providerstring

What auth provider was used to register this user.

external_identifierstring

Primary key of the user in the third party authentication provider, if used.

auth_dataobject

Required data about the user as provided by the third party auth provider, if used.

email_notificationsboolean

When this is enabled, the user will receive emails for notifications.

appearancestring

One of auto, light, dark.

One ofautolightdark

theme_darkstring

Theme to use in dark mode.

theme_lightstring

Theme to use in light mode.

theme_light_overridesobject

Customization for light theme in use.

theme_dark_overridesobject

Customization for dark theme in use.

metaobject
total_countinteger

Returns the total item count of the collection you're querying.

filter_countinteger

Returns the item count of the collection you're querying, taking the current filter/search parameters into account.

json
{
  "data": [
    {
      "id": "63716273-0f29-4648-8a2a-2af2948f6f78",
      "first_name": "Admin",
      "last_name": "User",
      "email": "admin@example.com",
      "password": "string",
      "location": null,
      "title": null,
      "description": null,
      "tags": null,
      "avatar": null,
      "language": "en-US",
      "tfa_secret": null
    }
  ],
  "meta": {
    "total_count": 0,
    "filter_count": 0
  }
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?
Get Users — Directus — Documentation