Accessing list of mailbox sizes - Exchange Online / Office 365












0















I am hoping to be able, from an app written in C# or VB.NET to be able to connect to my Exchange Online Plan 1(office 365) and get a list of all users and the sizes of their mailboxes



I have spent a while reading the API and various sites about doing this, but a) not sure if possible and b) struggling to find best way to do this



Basically we have Exchange Online (Plan 1) with about 300 user mailboxes, and just want a kick start on a) how I connect via a .NET app and b) how I can then start to pull out useful information such as current mailbox sizes, limits, mailbox rules etc etc



Thanks for reading, any thing you need me to clarify please ask










share|improve this question



























    0















    I am hoping to be able, from an app written in C# or VB.NET to be able to connect to my Exchange Online Plan 1(office 365) and get a list of all users and the sizes of their mailboxes



    I have spent a while reading the API and various sites about doing this, but a) not sure if possible and b) struggling to find best way to do this



    Basically we have Exchange Online (Plan 1) with about 300 user mailboxes, and just want a kick start on a) how I connect via a .NET app and b) how I can then start to pull out useful information such as current mailbox sizes, limits, mailbox rules etc etc



    Thanks for reading, any thing you need me to clarify please ask










    share|improve this question

























      0












      0








      0








      I am hoping to be able, from an app written in C# or VB.NET to be able to connect to my Exchange Online Plan 1(office 365) and get a list of all users and the sizes of their mailboxes



      I have spent a while reading the API and various sites about doing this, but a) not sure if possible and b) struggling to find best way to do this



      Basically we have Exchange Online (Plan 1) with about 300 user mailboxes, and just want a kick start on a) how I connect via a .NET app and b) how I can then start to pull out useful information such as current mailbox sizes, limits, mailbox rules etc etc



      Thanks for reading, any thing you need me to clarify please ask










      share|improve this question














      I am hoping to be able, from an app written in C# or VB.NET to be able to connect to my Exchange Online Plan 1(office 365) and get a list of all users and the sizes of their mailboxes



      I have spent a while reading the API and various sites about doing this, but a) not sure if possible and b) struggling to find best way to do this



      Basically we have Exchange Online (Plan 1) with about 300 user mailboxes, and just want a kick start on a) how I connect via a .NET app and b) how I can then start to pull out useful information such as current mailbox sizes, limits, mailbox rules etc etc



      Thanks for reading, any thing you need me to clarify please ask







      microsoft-graph






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 24 '18 at 22:50









      Darren RoseDarren Rose

      1




      1
























          1 Answer
          1






          active

          oldest

          votes


















          0















          a) how I connect via a .NET app




          We can use the simple code to connect the graph API




          b) how I can then start to pullout useful information such as current mailbox sizes, limits, mailbox rules etc etc




          When we get the Accesstoken ,we can use the /users/{id|userPrincipalName}/mailboxSettings to get the mailbox setting. For more detail about this endpoint, we can refer to this document






          share|improve this answer
























          • Thanks for replying - I can't see at the link you have given any "simple" code to connect to Graph API - as it seems to mention various languages but not VB or C# for a standard console or winforms app - hence my question - thanks

            – Darren Rose
            Nov 26 '18 at 11:55











          • If you choose a language on the site, there will be a section Find code samples

            – Keen Jin
            Nov 29 '18 at 3:17











          • Yes I can see that - but as per my reply - none of the language options are C# or VB - hence the question and response.......... so no point me clicking on one as any code samples are not going to be in C# or VB which is the whole reason I posted in first place, had it been that easy I wouldn't have needed to ask...

            – Darren Rose
            Nov 29 '18 at 12:53











          • There is a console c# snippets sample code.

            – Keen Jin
            Nov 30 '18 at 1:30













          • Thanks - hadn't seen that sample. That at least allows me to connect to my Office 365 and it pulls out various information as a test. But don't see how to get it to find mailbox size though

            – Darren Rose
            Dec 7 '18 at 15:44













          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%2f53463040%2faccessing-list-of-mailbox-sizes-exchange-online-office-365%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0















          a) how I connect via a .NET app




          We can use the simple code to connect the graph API




          b) how I can then start to pullout useful information such as current mailbox sizes, limits, mailbox rules etc etc




          When we get the Accesstoken ,we can use the /users/{id|userPrincipalName}/mailboxSettings to get the mailbox setting. For more detail about this endpoint, we can refer to this document






          share|improve this answer
























          • Thanks for replying - I can't see at the link you have given any "simple" code to connect to Graph API - as it seems to mention various languages but not VB or C# for a standard console or winforms app - hence my question - thanks

            – Darren Rose
            Nov 26 '18 at 11:55











          • If you choose a language on the site, there will be a section Find code samples

            – Keen Jin
            Nov 29 '18 at 3:17











          • Yes I can see that - but as per my reply - none of the language options are C# or VB - hence the question and response.......... so no point me clicking on one as any code samples are not going to be in C# or VB which is the whole reason I posted in first place, had it been that easy I wouldn't have needed to ask...

            – Darren Rose
            Nov 29 '18 at 12:53











          • There is a console c# snippets sample code.

            – Keen Jin
            Nov 30 '18 at 1:30













          • Thanks - hadn't seen that sample. That at least allows me to connect to my Office 365 and it pulls out various information as a test. But don't see how to get it to find mailbox size though

            – Darren Rose
            Dec 7 '18 at 15:44


















          0















          a) how I connect via a .NET app




          We can use the simple code to connect the graph API




          b) how I can then start to pullout useful information such as current mailbox sizes, limits, mailbox rules etc etc




          When we get the Accesstoken ,we can use the /users/{id|userPrincipalName}/mailboxSettings to get the mailbox setting. For more detail about this endpoint, we can refer to this document






          share|improve this answer
























          • Thanks for replying - I can't see at the link you have given any "simple" code to connect to Graph API - as it seems to mention various languages but not VB or C# for a standard console or winforms app - hence my question - thanks

            – Darren Rose
            Nov 26 '18 at 11:55











          • If you choose a language on the site, there will be a section Find code samples

            – Keen Jin
            Nov 29 '18 at 3:17











          • Yes I can see that - but as per my reply - none of the language options are C# or VB - hence the question and response.......... so no point me clicking on one as any code samples are not going to be in C# or VB which is the whole reason I posted in first place, had it been that easy I wouldn't have needed to ask...

            – Darren Rose
            Nov 29 '18 at 12:53











          • There is a console c# snippets sample code.

            – Keen Jin
            Nov 30 '18 at 1:30













          • Thanks - hadn't seen that sample. That at least allows me to connect to my Office 365 and it pulls out various information as a test. But don't see how to get it to find mailbox size though

            – Darren Rose
            Dec 7 '18 at 15:44
















          0












          0








          0








          a) how I connect via a .NET app




          We can use the simple code to connect the graph API




          b) how I can then start to pullout useful information such as current mailbox sizes, limits, mailbox rules etc etc




          When we get the Accesstoken ,we can use the /users/{id|userPrincipalName}/mailboxSettings to get the mailbox setting. For more detail about this endpoint, we can refer to this document






          share|improve this answer














          a) how I connect via a .NET app




          We can use the simple code to connect the graph API




          b) how I can then start to pullout useful information such as current mailbox sizes, limits, mailbox rules etc etc




          When we get the Accesstoken ,we can use the /users/{id|userPrincipalName}/mailboxSettings to get the mailbox setting. For more detail about this endpoint, we can refer to this document







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 '18 at 8:20









          Keen JinKeen Jin

          670116




          670116













          • Thanks for replying - I can't see at the link you have given any "simple" code to connect to Graph API - as it seems to mention various languages but not VB or C# for a standard console or winforms app - hence my question - thanks

            – Darren Rose
            Nov 26 '18 at 11:55











          • If you choose a language on the site, there will be a section Find code samples

            – Keen Jin
            Nov 29 '18 at 3:17











          • Yes I can see that - but as per my reply - none of the language options are C# or VB - hence the question and response.......... so no point me clicking on one as any code samples are not going to be in C# or VB which is the whole reason I posted in first place, had it been that easy I wouldn't have needed to ask...

            – Darren Rose
            Nov 29 '18 at 12:53











          • There is a console c# snippets sample code.

            – Keen Jin
            Nov 30 '18 at 1:30













          • Thanks - hadn't seen that sample. That at least allows me to connect to my Office 365 and it pulls out various information as a test. But don't see how to get it to find mailbox size though

            – Darren Rose
            Dec 7 '18 at 15:44





















          • Thanks for replying - I can't see at the link you have given any "simple" code to connect to Graph API - as it seems to mention various languages but not VB or C# for a standard console or winforms app - hence my question - thanks

            – Darren Rose
            Nov 26 '18 at 11:55











          • If you choose a language on the site, there will be a section Find code samples

            – Keen Jin
            Nov 29 '18 at 3:17











          • Yes I can see that - but as per my reply - none of the language options are C# or VB - hence the question and response.......... so no point me clicking on one as any code samples are not going to be in C# or VB which is the whole reason I posted in first place, had it been that easy I wouldn't have needed to ask...

            – Darren Rose
            Nov 29 '18 at 12:53











          • There is a console c# snippets sample code.

            – Keen Jin
            Nov 30 '18 at 1:30













          • Thanks - hadn't seen that sample. That at least allows me to connect to my Office 365 and it pulls out various information as a test. But don't see how to get it to find mailbox size though

            – Darren Rose
            Dec 7 '18 at 15:44



















          Thanks for replying - I can't see at the link you have given any "simple" code to connect to Graph API - as it seems to mention various languages but not VB or C# for a standard console or winforms app - hence my question - thanks

          – Darren Rose
          Nov 26 '18 at 11:55





          Thanks for replying - I can't see at the link you have given any "simple" code to connect to Graph API - as it seems to mention various languages but not VB or C# for a standard console or winforms app - hence my question - thanks

          – Darren Rose
          Nov 26 '18 at 11:55













          If you choose a language on the site, there will be a section Find code samples

          – Keen Jin
          Nov 29 '18 at 3:17





          If you choose a language on the site, there will be a section Find code samples

          – Keen Jin
          Nov 29 '18 at 3:17













          Yes I can see that - but as per my reply - none of the language options are C# or VB - hence the question and response.......... so no point me clicking on one as any code samples are not going to be in C# or VB which is the whole reason I posted in first place, had it been that easy I wouldn't have needed to ask...

          – Darren Rose
          Nov 29 '18 at 12:53





          Yes I can see that - but as per my reply - none of the language options are C# or VB - hence the question and response.......... so no point me clicking on one as any code samples are not going to be in C# or VB which is the whole reason I posted in first place, had it been that easy I wouldn't have needed to ask...

          – Darren Rose
          Nov 29 '18 at 12:53













          There is a console c# snippets sample code.

          – Keen Jin
          Nov 30 '18 at 1:30







          There is a console c# snippets sample code.

          – Keen Jin
          Nov 30 '18 at 1:30















          Thanks - hadn't seen that sample. That at least allows me to connect to my Office 365 and it pulls out various information as a test. But don't see how to get it to find mailbox size though

          – Darren Rose
          Dec 7 '18 at 15:44







          Thanks - hadn't seen that sample. That at least allows me to connect to my Office 365 and it pulls out various information as a test. But don't see how to get it to find mailbox size though

          – Darren Rose
          Dec 7 '18 at 15:44




















          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%2f53463040%2faccessing-list-of-mailbox-sizes-exchange-online-office-365%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

          Contact image not getting when fetch all contact list from iPhone by CNContact

          count number of partitions of a set with n elements into k subsets

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks