- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 08:39 AM
We have successfully integrated Azure Active Directory (Azure AD) with ServiceNow to retrieve user records using the REST Graph API. However, we encountered an issue where the API response is limited to 100 (max 900) records when performing a GET operation with the following endpoint:
- Endpoint: https://graph.microsoft.com/v1.0/users
Additionally, when we use the $top parameter in the endpoint, it brings a maximum of 999 records:
- Endpoint with $top: https://graph.microsoft.com/v1.0/users?$top=999
Our goal is to retrieve all user records from Azure AD and populate them into the ServiceNow user table. Could you please advise on how to obtain the complete set of records in the API response?
Just to give more clarity, I have created REST Message and GetUsers method, then using them in the scheduled script to run everyday get these records into user table
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 09:22 AM
Hello @Naveen Bagula ,
Please check this community link that I found, if it can help you find a solution for your issue : https://www.servicenow.com/community/developer-forum/ms-graph-api-to-pull-records/m-p/1793498#M45042...
Please mark as helpful/solution accepted if the solution did work for you.
Happy learning 🚀
Regards,
- Nishchitha K S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 09:22 AM
Hello @Naveen Bagula ,
Please check this community link that I found, if it can help you find a solution for your issue : https://www.servicenow.com/community/developer-forum/ms-graph-api-to-pull-records/m-p/1793498#M45042...
Please mark as helpful/solution accepted if the solution did work for you.
Happy learning 🚀
Regards,
- Nishchitha K S