Shared Folders with Outlook Mail REST API RRS feed

  • Question

  • Hi

    Could you tell me if it is possible to access shared folders through the Outlook Mail REST API please for Office 265.



    • Edited by Andy Simms Tuesday, April 12, 2016 11:15 PM
    Tuesday, April 12, 2016 11:13 PM

All replies

  • At present O365 REST APIs allow access to mail, calendar and contacts belonging to the authenticated user. So, your scenario of access shared folders through the Outlook Mail REST API is not supported at this time. There are two workarounds to achieve that :

    1.You could use EWS Managed API to access shared mailbox information,  You could specify the Mailbox you want to access. If your shared Mailbox was called Shared@domain.com then code below is for your reference:

            FolderId SharedMailbox = new FolderId(WellKnownFolderName.Inbox,"Shared@domain.com")
            ItemView itemView = new ItemView(1000);

    2.If you are able to run an app on a server, you can build a service app that requires admin consent, but is authorized to access any mailbox in the Office 365 tenant. You will need to make your native app talk to the app running on the server  .Please check this article  

    Thursday, April 14, 2016 8:05 AM