search_ad_users_or_groups
Searches Active Directory users and groups in Horizon to return matching accounts and IDs needed for pool entitlements. Supports filtering by name, login, group, or domain.
Instructions
Search for AD users and groups in the Horizon environment.
Use the returned 'id' field when setting pool entitlements.
Common filter fields: name, login_name, group, domain. Example filters: Find user by login: {"type":"Equals","name":"login_name","value":"jsmith"} Find by display name: {"type":"Contains","name":"name","value":"John"} Groups only: {"type":"Equals","name":"group","value":"true"}
Returns {items, count, page, size, pages_fetched, has_more, next_page, truncated}. If has_more is true there may be more results: call again with page=next_page (or narrow the filter), or pass fetch_all=true to fetch pages automatically (stops after 10 pages or 5000 items and sets truncated=true). Never treat a result with has_more=true as the complete list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based) | |
| size | No | Results per page (max 1000) | |
| filter | No | Horizon filter JSON. Example to search by name: {"type":"Contains","name":"name","value":"john"} or by login: {"type":"Equals","name":"login_name","value":"jsmith"} | |
| fetch_all | No | Fetch successive pages automatically (up to 10 pages / 5000 items). Prefer a filter when you only need a subset. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||