Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing another user calendar using the O365 REST API from a single domain admin account

We are in the process now of adapting our internal company applications to Office 365. Both systems are MVC projects. We are trying to use the O365 REST API directly. Need help on the following:

  1. How to get an appointment from another person in our company O365 account using Domain Admin credentials? We can also consider adding visibility of the person's calendar to the admin account calendars list under "My Calendars" or "Other Calendars".

  2. How to set an appointment inside another person calendar using the Super Admin account.

Basically what we want is to be able to perform operations using 1 account into other users calendars and using the REST API directly.

Will really appreciate assistance in this matter.

like image 728
abarreiro Avatar asked Oct 20 '22 22:10

abarreiro


1 Answers

Thanks for your question! Today, the Office 365 Calendar REST APIs only allow retrieving or updating calendar of the authenticated user. We are really close to adding support for a service account that is granted access by an admin to all users in the tenant, and can retrieve and update calendars of users in the tenant without the user being present. So, your scenario should be unblocked in a few weeks. Stay tuned for an announcement on how to set up and use service accounts.

[UPDATE]: Alternately, you can use Exchange Web Services (EWS) SOAP APIs now to do this. Please check out how application impersonation works and here for using .NET EWS Managed API for app impersonation. The client side APIs available are .NET EWS Managed API and EWS Java API in case you use one of these runtimes.

[UPDATE]: Support for service accounts for REST APIs is now available. Please see our blog announcement for more details and let us know if you have any questions. Thanks for your patience.

like image 114
Venkat Ayyadevara - MSFT Avatar answered Oct 29 '22 18:10

Venkat Ayyadevara - MSFT