Not getting full users from Azure AD from ServiceNow Integration

Mohammed Hyder
Tera Contributor

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?

7 REPLIES 7

{"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"}}}

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

 

But by this we are facing issues in getting the manager

we were using expand=manager in the paramter