0
votes

We have an application for the user to book/Edit/Cancel Room mailbox meeting from the portal.

So the user should be able to create a calendar event in the room mailbox and all participants should receive the meeting invite

Could you please advise What permission is required on Graph API other than "Calendars.ReadWrite"

1
According to the public document there is no other permission to create an event other than Calendar.ReadWrite.Shiva Keshav Varma

1 Answers

0
votes

According to the document about creating an online meeting, I tried to call the api and it worked with Calendars.ReadWrite permission, here's the detail.

  1. Creating an Azure Ad app and add api permission enter image description here
  2. Get the access token , please note I just set ReadWrite as scope. enter image description here
  3. Call the api according to the document above and will get success response, you can open outlook and find meeting has created in calendar. enter image description here

And here is my url and parameter:

Post:https://graph.microsoft.com/v1.0/me/events
Authorization:Bearer <access token>
Prefer:outlook.timezone="Pacific Standard Time"
Content-Type:application/json
body:{
  "subject": "Prep for customer meeting",
  "body": {
    "contentType": "HTML",
    "content": "Does this time work for you?"
  },
  "start": {
    "dateTime": "2020-11-20T13:00:00",
    "timeZone": "Pacific Standard Time"
  },
  "end": {
    "dateTime": "2020-11-20T14:00:00",
    "timeZone": "Pacific Standard Time"
  },
  "location":{
    "displayName":"Cordova conference room"
  },
  "attendees": [
    {
      "emailAddress": {
        "address":"[email protected]",
        "name": "Adele Vance"
      },
      "type": "required"
    }
  ],
  "allowNewTimeProposals": true,
  "isOnlineMeeting": true,
  "onlineMeetingProvider": "teamsForBusiness"
}