The User sync query configuration option gives administrators the opportunity to customize the Microsoft Graph query used by the plugin to get users for their organization. This gives administrators full control over which users should be enrolled to the WordPress website.
By default the configured query is
Please note the following:
- The URL must be encoded by you
- The REST API itself follows from your configuration on the plugin’s wizard Integration tab e.g. https://graph.microsoft.com/beta/… or
- If you don’t set a page size (e.g. $top=10) you risk retrieving too much users at once causing PHP to time out when processing all uses.
- If you remove your custom query by emptying this setting the plugin will use the default query as fallback.