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










2















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 call
https://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?










share|improve this question


























    2















    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 call
    https://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?










    share|improve this question
























      2












      2








      2








      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 call
      https://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?










      share|improve this question














      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 call
      https://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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 21 at 18:06









      Jeff GreeneJeff Greene

      3818




      3818






















          2 Answers
          2






          active

          oldest

          votes


















          1














          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).






          share|improve this answer






























            0














            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






            share|improve this answer























              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
              );



              );













              draft saved

              draft discarded


















              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









              1














              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).






              share|improve this answer



























                1














                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).






                share|improve this answer

























                  1












                  1








                  1







                  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).






                  share|improve this answer













                  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).







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 21 at 18:58









                  Marc LaFleurMarc LaFleur

                  20.1k32034




                  20.1k32034























                      0














                      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






                      share|improve this answer



























                        0














                        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






                        share|improve this answer

























                          0












                          0








                          0







                          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






                          share|improve this answer













                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 21 at 19:37









                          SivaprakashSivaprakash

                          473




                          473



























                              draft saved

                              draft discarded
















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                              Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                              Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript