- HelloID environment.
- HelloID Service Automation agent (cloud or on-prem).
- Access to the HelloID API.
- API Key
- API Secret
This code snippet executes the following tasks:
- Imports the ActiveDirectory module.
- Define a search query
$HelloIDUserSearchFilterbased on the search parameter$datasource.searchUser - Retrieve the HelloID users using the
Get all usersAPI with a paging of 1000.
The query property search searches for users via contains in following fields: Firstname, Lastname, Username, Contact email See the HelloID Docs page
- Return a hash table for each user account using the
Write-Outputcmdlet.
To view an example of the data source output, please refer to the JSON code pasted below.
{
"searchUser": "James"
}