Search code examples
office365azure-active-directoryoffice365-appsoutlook-restapi

Office 365 API or Azure AD Graph API - Get Someone Elses Calendar


I am trying to get an office 365 calendar, not for "me", but of a contact. i.e. in the company I work for (which has a global address list), I want to access Dave's calendar, as I would in outlook.

I have been through the documentation here, StackOverflow (e.g. here and here), plus Office 365 samples and Graph API samples (I believe Graph API is required for global address lists), but cannot find a way to do it.

I have 3 questions:

  1. Is this possible?
  2. If so, how please?
  3. If it's not possible with a global address list, is it possible with contacts created via Office 365 - and if so, how?

Any help much appreciated.


Solution

  • It isn't currently possible if I understand your scenario correctly. If you are signing in as you, you only get access to your mailbox. You don't get access to other people, even if they've delegated access to you. This is something we're looking to improve upon, but for now you cannot do it.

    You can create an app that uses the client credential auth flow, and an admin can grant access to all users, but I don't think that's the scenario you're going for.