Skip to main content

Query Halo Users

The Query Halo Users action searches and filters users (contacts) in Halo PSA. Use this to find users matching specific criteria for automation, contact lookup, or workflow decisions.

Single API Call Action

This is a single API call action. You define the search and filter conditions and the action makes one API call to retrieve the results. Learn more about the difference between workflow actions and single API call actions.

When to Use This Action

Use this action when:

  • You need to look up a user by email address or name
  • You want to retrieve a list of users for a specific client or site
  • You need to verify whether a user exists before creating one
  • You are building custom workflows that need user information

Configuration

Connection

FieldDescription
Halo ConnectionSelect the Halo connection to use for this action.

Search & Pagination

FieldDescriptionDefault
SearchSearch term to filter users by name or email address. Supports text expressions.None
Page SizeNumber of results per page (1-1000).25
Page NumberPage number to retrieve.1

Filters

FieldDescription
ClientFilter users by client/company. Requires Halo Connection to be selected first.
SiteFilter users by site. Requires both Halo Connection and Client to be selected first.

Status Filters

FieldDescriptionDefault
Include ActiveInclude active users in results.Enabled
Include InactiveInclude inactive users in results.Disabled

Ordering

FieldDescription
Order ByField name to order results by (e.g., name, emailaddress). Supports text expressions.
Order DescendingSort results in descending order.

Error Handling

FieldDescriptionDefault
Error HandlingAction to take if the query fails.Exception

Returned Variables

When you configure Store the results in Variable, these variables become available for use in subsequent actions:

VariableTypeDescription
record_countnumberTotal number of matching users
usersarrayArray of user objects

User Properties

Each user in the users array contains:

PropertyTypeDescription
idnumberThe user ID
namestringThe user's display name
emailaddressstringThe user's email address
client_idnumberThe client ID
client_namestringThe client name
site_idnumberThe site ID
site_namestringThe site name
inactiveboolWhether the user is inactive
phonenumberstringThe user's phone number
mobilenumberstringThe user's mobile number
jobtitlestringThe user's job title
notesstringNotes about the user

Example usage: {{custom.myVariable.users.[0].emailaddress}}

Example Use Cases

Find a User by Email Address

Set the Search field to the sender's email address:

SettingValue
Search{{email.from.address}}

The search matches partial values, so searching for [email protected] returns users with that email address.

List All Users for a Client

SettingValue
Client(Select from dropdown)
Search(Leave empty)
Page Size100

Check If a User Exists

Query for the user and check if record_count is greater than 0 in a subsequent conditional action.

Find Inactive Users

SettingValue
Include ActiveDisabled
Include InactiveEnabled
Client(Optional: filter by client)

FAQs

How do I use the user ID in a subsequent action?

Store this action's result in a variable (e.g., foundUser), then reference {{custom.foundUser.users.[0].id}} in the next action.

How do I iterate over all users?

Use the Iterate action over {{custom.myVariable.users}} to process each user individually.