If you're using application permission then i would suggest you to test the same with POSTMAN tool. Here are the steps available for the client credentials flow.
Microsoft Graph Java API create event permissions
I have been having issues with certain functions using the Java V1.0 and beta clients to create events.
https://graph.microsoft.com/v1.0/me/events
https://graph.microsoft.com/v1.0/me/calendar/events
Error message: Access to OData is disabled.
https://graph.microsoft.com/v1.0/me/events
Error message: Access is denied. Check credentials and try again.
My authtoken in the app says I have these permissions.
"scp": "Calendars.ReadWrite Contacts.ReadWrite DeviceManagementApps.ReadWrite.All DeviceManagementConfiguration.Read.All DeviceManagementConfiguration.ReadWrite.All DeviceManagementManagedDevices.PrivilegedOperations.All DeviceManagementManagedDevices.Read.All DeviceManagementRBAC.Read.All DeviceManagementRBAC.ReadWrite.All DeviceManagementServiceConfig.Read.All DeviceManagementServiceConfig.ReadWrite.All Directory.AccessAsUser.All Directory.ReadWrite.All Files.ReadWrite.All Group.ReadWrite.All IdentityRiskEvent.Read.All Mail.ReadWrite MailboxSettings.ReadWrite Notes.ReadWrite.All openid People.Read profile Reports.Read.All SecurityEvents.Read.All Sites.ReadWrite.All Tasks.ReadWrite TeamsTab.Create TeamsTab.ReadWrite.All User.Read User.ReadBasic.All User.ReadWrite User.ReadWrite.All email",
1 answer
Sort by: Most helpful
-
Deva-MSFT 2,256 Reputation points Microsoft Employee
2021-02-19T20:22:17.057+00:00