younifyd
Menu

Get User

Retrieve a User

GET/users/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

Unique identifier for the object.

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

Response

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

dataobject
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.

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
  }
}

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

Was this page helpful?