Microsoft Graph Java API create event permissions

Leo Kishore 1 Reputation point
2021-02-16T13:15:51.717+00:00

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",

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,118 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2021-02-19T20:22:17.057+00:00

    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.

    0 comments No comments