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

zLek 1 Reputation point
2021-08-19T17:27:02.88+00:00

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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,225 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.