Search Entries
Overview
The Search Entries Snap performs a search with criteria (if given) and displays the matching entries of the selected type (User or Group) from the given Azure Active Directory instance.
Supported Accounts
- This is a Read-type Snap.
Works in Ultra Tasks
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input |
This Snap has exactly one document input view. Entry type and key (if desired) to sort the entries. |
|
| Output |
This Snap has exactly one document output view. List of existing entries of the selected type matching the given criteria. |
|
| Learn more about Error handling. | ||
Examples
Snap settings
| Field/Field set | Description |
|---|---|
| Label*
|
Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: Search Entries Example: Search Entries |
| Entity type
|
Select the object to work with. Available options are:
Default value: User Example: Group |
| Filter
|
Specify the search criteria to filter the search for the selected Entity type. Azure Expression Language must be used.
Note: You can use only certain attributes in the search expression based on entry type.
Learn more about framing search expressions: Supported queries, filters, and paging options. Learn how to filter attributes: Entity and complex type reference. Default value: N/A Example: |
| Properties
|
Specify the properties to be displayed in the output for the user or group. You can add properties corresponding to User or Group from the following links:
Learn more about Advanced query capabilities on Azure AD directory objects. Note: Microsoft has updated the naming conventions of the attributes. Hence, specify the property as mentioned in this document for the Snap to return the correct attributes.
For example, userState should be specified as externalUserState. Note: This Snap also supports
$select only properties. To view the $select only properties in the output view you must specify the properties in the $select text.Default value: N/A Example: aboutMe, accountEnabled, displayName |
| Snap execution
|
Choose one of the three modes in
which the Snap executes. Available options are:
|
Additional Information
User-Agent Header
The Azure Active Directory Snap Pack utilizes the REST HTTP Client to send HTTP requests to the Azure endpoint. This process incorporates a User-Agent header with the value of "SnapLogic" for every request. By including the User-Agent header, you can monitor and track the requests made to the Azure endpoint, allowing you to determine the total count of requests made.
To view the User-Agent number for a user or group:
- Log in to the Azure portal.
- Navigate to Azure services > Azure Active Directory.
- Navigate to Users/Groups and select the desired User/Group.
- Click Audit logs in the left navigation menu. In the right pane, you can view the User-Agent number in the following format:
SnapLogic (<build_number>) - pid-113e3955-1969-4541-9c9c-e3e0c897cccd. For example, a PR build might haveSnapLogic (PR21312) - pid-113e3955-1969-4541-9c9c-e3e0c897cccdas the User Agent. Thepidvalue comes from Microsoft.


Obtaining User object ID/Role object ID/Group object ID from Azure Portal
- Log in to the Azure portal.
- Navigate to Azure Active Directory > Users/Groups.
- Select a specific User/Group.
- In the Profile, you can view the Object Id.
- Copy the Object ID and use it to configure the relevant Snap as required.


Azure AD Graph API Output vs Microsoft Graph API Output
Many features in Microsoft Graph API work similarly as the Azure Active Directory Graph APIs. However, a few have been changed and improved. For instance, there is a difference in the entity names in the output preview. The following images highlight the difference in the output.
Old output (Azure AD Graph API): The entity object Id property was displayed as "ObjectId".
Learn more about the properties in Azure AD Graph API: Entity and complex type reference
New output (Microsoft Graph API): The object Id property is displayed as "Id" in the output.
The output also contains the default parameters shown by the Microsoft Graph API. However, there are certain attributes such as city that can be set by the Create Entry Snap, but this parameter is not displayed in the output as it is not the default output parameter. If you want use such parameters in your output, you can use filters to filter the parameters.
Learn more about the properties in Microsoft Graph API:
- User properties: user resource type
- Group properties: group resource type
Learn more: Migrate Azure AD Graph to Microsoft Graph