question

zLek-4465 avatar image
0 Votes"
zLek-4465 asked Deva-MSFT commented

Creating calendar event with Graph API application permissions does not show up in attendees' or organizer's calendar

I am creating a daemon application with application permissions that's supposed to be able to create calendar events. I have added permissions like calendar.readWrite, user.readWrite and so on. I have given admin access in the Azure portal.

In order to create an event using application permissions, I first get an access token by sending a request to /token endpoint with the correct tenant id. I then make a post request to /users/{userId}/events, where user id is the object id of the global admin (typically the main account I used all along).

I get a success response with the details of the event I just created. But the thing is that although an event technically gets created, no email is sent to attendees, and no event shows up in their calendars. And nothing shows up in global admin email id as well. And in the response object, onlineMeeting turns up null, just like onlineMeetingUrl. onlineMeetingProvider turns up as "unknown". These are all fields I populated during the initial request.

Any help would be appreciated.

microsoft-graph-calendar
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Outside of your application, i would suggest you to test the scenario with POSTMAN/Graph Explorer to see if the above works for you.

0 Votes 0 ·

0 Answers