1

we want (A-USER) to add events into a shared (with us) calendar of another user (B-USER).

in the https://outlook.office365.com/ews/odata/Me/Calendars list there aren't the shared calendars

posting a json event at the url: https://outlook.office365.com/api/v1.0/Users('B-USER@email.bla')/events it reply with an error

how can we add events into shared calendars?

Pits79
  • 49
  • 1
  • 5

1 Answers1

3

Thanks for your interest in Office 365 REST APIs! At present we only allow access to mail, calendar and contacts belonging to the authenticated user. So, your scenario of making changes to a shared calendar is not supported at this time. Access to resources belonging to other users e.g. shared calendar is on our roadmap to support but we don't yet have a timeframe to share with you.

In the meantime, you can use our Exchange Web Services SOAP API to implement your scenario. If you are using .NET, then we recommend you use EWS Managed API to make the EWS calls and if you are using Java, we recommend you use EWS Java API to do the same. See here for info on how to create appointments on a calendar using EWS Managed API or raw SOAP request/response.

Hope that helps ...

Thanks,

Venkat

Venkat Ayyadevara - MSFT
  • 2,850
  • 1
  • 14
  • 11
  • I have created a Native Android app using Office 365 REST API to get an authenticated user's Calendar Events. I also have Room accounts that automatically receive meeting requests. The authenticated user has full control over these Room accounts but I am not able to get Calendar events from these Room accounts using the authenticated user. Is this possible? Is there a work-around using a Native app? – Tinashe Jun 02 '15 at 07:38
  • Just posted a response to your question http://stackoverflow.com/questions/30594319/office365-api-admin-accessing-another-users-rooms-calendar-events/30596328#30596328 – Venkat Ayyadevara - MSFT Jun 02 '15 at 12:39
  • 2
    @VenkatAyyadevara-MSFT, Is this answer still application after a year? – Starx Dec 03 '15 at 19:21
  • @VenkatAyyadevara-MSFT could we get an update on this? – jarcoal Jun 16 '16 at 17:51
  • 2
    @jarcoal There is work going on to list calendars explicitly shared with a user foo@bar.com, as a calendar in the list https://outlook.office.com/api/v2.0/me/calendars. Once this work is complete, for calendars explicitly shared with a user, they would be able to add events, if they have sufficient permissions. This should be available by end of the year. Thanks. – Venkat Ayyadevara - MSFT Jun 17 '16 at 13:55
  • @VenkatAyyadevara-MSFT That's great news, thank you for the quick response! – jarcoal Jun 17 '16 at 16:13
  • Timeframe? Weeks? Months? Who-knows? Soon? – Raoul Sep 08 '16 at 10:18
  • @Tinashe i just wanted to know how your get access to calendar room api, I have created on app in ms account and not able to access apis. even though i have Private Key with app id, can you please help to get access to the apis. – manish1706 Jul 24 '17 at 10:50
  • @manish1706 You need an admin account, ie admin@domain.com That account has rights to access calendar events. With that I used https://github.com/OfficeDev/ews-java-api to get room events – Tinashe Oct 05 '17 at 18:05