2

We are trying to implement a calendar portal (C# ASP.NET MVC) where one admin can see multiple outlook(or office 365) users calendar and see who is available. So multiple accounts should be accessed from one ASP.NET MVC application.

First question : Is it even possible? (may be because I had already seen post on stackoverflow : EWS - Access All Shared Calendars ) Second question : What would be the right approach? Third question : Is there any project available from Microsoft or article? (I could find any good one)

I have had gone through Using Azure Multi-Tenant application without an Office 365 subscription to access users calendar information and https://www.youtube.com/watch?v=0kvDyl5HShA.

I have had also get connected with a single user's account via OAuth2. It was successful.

Currently, we have this subscription. If any more information required then please comment. Then I will add more description as per necessary.

enter image description here

Thank you.

Community
  • 1
  • 1
Md. Alim Ul Karim
  • 2,401
  • 2
  • 27
  • 36

1 Answers1

1

You could try to build Daemon or Service Apps using client credential grant flow as described in this blog, the service app that requires admin consent, but is authorized to access any user's mailbox/calendar information in your Office 365 tenant. You could click here for sample web app that uses client credential flow to access Users, Mail, Calendar, Contacts in Office 365 via Rest APIs .

This link you provided needs to associate your Office 365 account with Azure AD to create and manage apps .If you can have an existing Microsoft Azure subscription, you can associate your Office 365 for business subscription with it. .Otherwise, you'll need to create a new Azure subscription and associate it with your Office 365 account in order to register and manage apps. For more details ,please read how to set up your Office 365 development environment.

Nan Yu
  • 26,101
  • 9
  • 68
  • 148