Skip to main content

Query Halo Users

The Query Halo Users action finds users and contacts in Halo PSA. It can return the first match or an array containing up to 100 matches.

First Page Only

This action searches only the first result page and applies every configured filter in Halo.

When to Use This Action​

Use this action when you need to:

  • Find a user by name or email address
  • Find users belonging to a client or site
  • Include active users, inactive users, or both
  • Filter users with Halo Custom Fields
  • Retrieve all readable User Custom Fields

Do not use this action to retrieve more than 100 users. Narrow the filters or use Halo's API directly when you need later pages.

How It Works​

The action first checks which User Custom Fields your Halo connection can read. It then asks Halo for page 1 with all of those fields included.

The default order is User ID from lowest to highest. In First match mode, a non-Continue multiple-results choice makes the action request two users so it can check uniqueness.

The action counts users returned on page 1 rather than Halo's reported total. It stores a successful result before applying a result-count choice. A request error or malformed response uses Error Handling, clears the result to null, and does not trigger a no-results choice.

Configuration​

Results​

FieldDescriptionDefault
ResultsReturn Up to 100 matches as an array, or First match as one object or null.Up to 100 matches
Order BySort by User ID or Name.User ID
Order DescendingReverse the selected order.Disabled

Filters​

FieldDescription
SearchSearch users by name or email address.
ClientReturn users belonging to the selected client. This also narrows the Site list.
SiteReturn users belonging to the selected site.
Active StateReturn active users, inactive users, or both.
Custom Field FiltersBuild grouped AND/OR conditions using Halo User Custom Fields.

Error Handling​

FieldDescription
Error HandlingChoose what happens when either Halo request fails or returns malformed data. Available choices depend on the type of automation.
If no results are returnedChoose what happens after a successful query returns no users.
If more than one result is returnedChoose what happens after a successful query returns multiple users. A non-Continue choice enables a two-user uniqueness check in First match mode.

Returned Variables​

In First match mode, the stored result is one user object or null. In Up to 100 matches mode, the result is an array capped at 100 users, including [] when no user matches.

Common properties include .id, .name, .emailaddress, .client_id, .client_name, .site_id, .site_name, .inactive, .phonenumber, .mobilenumber, .jobtitle, .notes, and .customfields.

For the first result in array mode, use a value such as {{custom.users.[0].id}}.