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.