PeopleSync Knowledge Base

Azure AD Agent: Using Graph API Filters

If the GUI filter editor is not powerful enough for your needs, Graph API filter syntax can be used in the filter’s text window as follows:

[Filter] = '<here goes the Graph API filter>'

For help regarding the Graph API filter syntax, please check the following documents:

Advanced query capabilities can be used within Azure AD agent. When querying graph API, the agent runs with the following settings:

  • $count query parameter

  • ConsistencyLevel header set to eventual

Please check in the above documents if the query capabilities you require are available for the user or contact object.

A Graph API filter cannot be combined with other filters created in the GUI filter editor.

Examples

Users with either mobile phone or business phone

PowerShell
[Filter] = 'mobilePhone ne null or (businessPhones/any(p:p ge ' '))'