Not getting full users from Azure AD from ServiceNow Integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 10:37 PM
Dear All
We are trying to pull the users from Azure AD, but unfortunately we are getting only few users out of 11000+
also tried using top=999 in the API call
any leads?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 12:50 AM
{"error":{"code":"Request_UnsupportedQuery","message":"Operator 'endsWith' is not supported because the 'ConsistencyLevel:eventual' header is missing. Refer to https://aka.ms/graph-docs/advanced-queries for more information","innerError":{"date":"2025-02-27T08:50:26","request-id":"018ee876-dd8d-4fc9-882e-7ba66e4a3ee3","client-request-id":"018ee876-dd8d-4fc9-882e-7ba66e4a3ee3"}}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 01:56 AM
Try once to include ConsistencyLevel: eventual in the Request Header
GET https://graph.microsoft.com/v1.0/users?$filter=endsWith(mail,'@example.com')
ConsistencyLevel: eventual
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2025 02:19 AM
But by this we are facing issues in getting the manager
we were using expand=manager in the paramter