MS Graph - get all users The Next CEO of Stack OverflowContains filter on Microsoft Graph query not workingDisplay a list of upcoming birthdays of Office 365 users using Microsoft Graph APIHow to get manager property from a users requestGet outlook contacts with photo using Microsoft Graph Apiusing microsoft graph to get users by office locationWhen calling the graph endpoint I get [NULL] in returnAzure Graph API Call get only application groupshttps://graph.microsoft.com/v1.0/users - user not availablePagination in Microsoft Graph APi to get usersFiltering objects by date in MS Graph
How to place nodes around a circle from some initial angle?
Why this way of making earth uninhabitable in Interstellar?
How do I align (1) and (2)?
Reference request: Grassmannian and Plucker coordinates in type B, C, D
Is it possible to replace duplicates of a character with one character using tr
How to get from Geneva Airport to Metabief?
Chain wire methods together in Lightning Web Components
WOW air has ceased operation, can I get my tickets refunded?
"misplaced omit" error when >centering columns
Why do remote US companies require working in the US?
Solving system of ODEs with extra parameter
0 rank tensor vs 1D vector
Domestic-to-international connection at Orlando (MCO)
Easy to read palindrome checker
Why is my new battery behaving weirdly?
Make solar eclipses exceedingly rare, but still have new moons
Is a distribution that is normal, but highly skewed considered Gaussian?
What was the first Unix version to run on a microcomputer?
What happened in Rome, when the western empire "fell"?
Is French Guiana a (hard) EU border?
Rotate a column
Axiom Schema vs Axiom
I want to delete every two lines after 3rd lines in file contain very large number of lines :
Can a Bladesinger Wizard use Bladesong with a Hand Crossbow?
MS Graph - get all users
The Next CEO of Stack OverflowContains filter on Microsoft Graph query not workingDisplay a list of upcoming birthdays of Office 365 users using Microsoft Graph APIHow to get manager property from a users requestGet outlook contacts with photo using Microsoft Graph Apiusing microsoft graph to get users by office locationWhen calling the graph endpoint I get [NULL] in returnAzure Graph API Call get only application groupshttps://graph.microsoft.com/v1.0/users - user not availablePagination in Microsoft Graph APi to get usersFiltering objects by date in MS Graph
I'm trying to pull back a list of all users, my expected result would be approximately 20,000 users.
Graph appears to limit me to 1000.
The graph callhttps://graph.microsoft.com/v1.0/users
returns 100, if I add $top to it I can get up to 999.https://graph.microsoft.com/v1.0/users/?$top=999
The $top filter works as long as the value is < 1000.
Has anyone found a way or know of a way to get > 1000 users back in a list?
microsoft-graph
add a comment |
I'm trying to pull back a list of all users, my expected result would be approximately 20,000 users.
Graph appears to limit me to 1000.
The graph callhttps://graph.microsoft.com/v1.0/users
returns 100, if I add $top to it I can get up to 999.https://graph.microsoft.com/v1.0/users/?$top=999
The $top filter works as long as the value is < 1000.
Has anyone found a way or know of a way to get > 1000 users back in a list?
microsoft-graph
add a comment |
I'm trying to pull back a list of all users, my expected result would be approximately 20,000 users.
Graph appears to limit me to 1000.
The graph callhttps://graph.microsoft.com/v1.0/users
returns 100, if I add $top to it I can get up to 999.https://graph.microsoft.com/v1.0/users/?$top=999
The $top filter works as long as the value is < 1000.
Has anyone found a way or know of a way to get > 1000 users back in a list?
microsoft-graph
I'm trying to pull back a list of all users, my expected result would be approximately 20,000 users.
Graph appears to limit me to 1000.
The graph callhttps://graph.microsoft.com/v1.0/users
returns 100, if I add $top to it I can get up to 999.https://graph.microsoft.com/v1.0/users/?$top=999
The $top filter works as long as the value is < 1000.
Has anyone found a way or know of a way to get > 1000 users back in a list?
microsoft-graph
microsoft-graph
asked Mar 21 at 18:06
Jeff GreeneJeff Greene
3818
3818
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
This is because the results are paged. From the documentation:
Some queries against Microsoft Graph return multiple pages of data either due to server-side paging or due to the use of the
$top
query parameter to specifically limit the page size in a request. When a result set spans multiple pages, Microsoft Graph returns an@odata.nextLink
property in the response that contains a URL to the next page of results.
You need to follow the @odata.nextLink
URI until you reach the final page (which is simply a page without an @odata.nextLink
value).
add a comment |
You will have to make multiple API calls incrementing the $skip parameter with each call.
https://docs.microsoft.com/en-us/graph/query-parameters#skip-parameter
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286681%2fms-graph-get-all-users%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is because the results are paged. From the documentation:
Some queries against Microsoft Graph return multiple pages of data either due to server-side paging or due to the use of the
$top
query parameter to specifically limit the page size in a request. When a result set spans multiple pages, Microsoft Graph returns an@odata.nextLink
property in the response that contains a URL to the next page of results.
You need to follow the @odata.nextLink
URI until you reach the final page (which is simply a page without an @odata.nextLink
value).
add a comment |
This is because the results are paged. From the documentation:
Some queries against Microsoft Graph return multiple pages of data either due to server-side paging or due to the use of the
$top
query parameter to specifically limit the page size in a request. When a result set spans multiple pages, Microsoft Graph returns an@odata.nextLink
property in the response that contains a URL to the next page of results.
You need to follow the @odata.nextLink
URI until you reach the final page (which is simply a page without an @odata.nextLink
value).
add a comment |
This is because the results are paged. From the documentation:
Some queries against Microsoft Graph return multiple pages of data either due to server-side paging or due to the use of the
$top
query parameter to specifically limit the page size in a request. When a result set spans multiple pages, Microsoft Graph returns an@odata.nextLink
property in the response that contains a URL to the next page of results.
You need to follow the @odata.nextLink
URI until you reach the final page (which is simply a page without an @odata.nextLink
value).
This is because the results are paged. From the documentation:
Some queries against Microsoft Graph return multiple pages of data either due to server-side paging or due to the use of the
$top
query parameter to specifically limit the page size in a request. When a result set spans multiple pages, Microsoft Graph returns an@odata.nextLink
property in the response that contains a URL to the next page of results.
You need to follow the @odata.nextLink
URI until you reach the final page (which is simply a page without an @odata.nextLink
value).
answered Mar 21 at 18:58
Marc LaFleurMarc LaFleur
20.1k32034
20.1k32034
add a comment |
add a comment |
You will have to make multiple API calls incrementing the $skip parameter with each call.
https://docs.microsoft.com/en-us/graph/query-parameters#skip-parameter
add a comment |
You will have to make multiple API calls incrementing the $skip parameter with each call.
https://docs.microsoft.com/en-us/graph/query-parameters#skip-parameter
add a comment |
You will have to make multiple API calls incrementing the $skip parameter with each call.
https://docs.microsoft.com/en-us/graph/query-parameters#skip-parameter
You will have to make multiple API calls incrementing the $skip parameter with each call.
https://docs.microsoft.com/en-us/graph/query-parameters#skip-parameter
answered Mar 21 at 19:37
SivaprakashSivaprakash
473
473
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55286681%2fms-graph-get-all-users%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown