Share via

How to add co-host or co-organizer to an event using ms graph api's ?

Ritik joshi 6 Reputation points
2022-11-30T13:11:27.4+00:00

we have different users and for them, I can create events with meeting in their calendars by using graph API but in Case any user is not available to attend the event so I want that any other co-organizer or co-host can attend that event, I don't know how to create events with a co-host or co-organizer

so here the organizers are tutors and attendees are students so I mean if any tutor is not available to take the class so there should be a co-host or co-organizer(co-teacher) of that meeting( class ) so they can take the class in place of an unavailable tutor

Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Eliot Cole 6 Reputation points
    2026-03-09T12:29:25.7766667+00:00

    Hi, Ritik Joshi (sorry, hard to find the exact person to at)

    I believe that you do this by amending a meeting participant's 'role' type in the 'participants/attendees' key/value pair in the parent event:

    https://learn.microsoft.com/en-us/graph/api/resources/onlinemeeting?view=graph-rest-1.0


    Here's the breakdown of a 'meeting participant' in graph:

    https://learn.microsoft.com/en-us/graph/api/resources/meetingparticipantinfo?view=graph-rest-1.0


    Ensure that you change the 'role' value to "coorganizer" as per this learn link would suggest. :)

    Label Value
    Request Type PATCH
    URL https://graph.microsoft.com/v1.0//me/onlineMeetings/{meetingId}
    Headers 'Content-Type': "application/json"
    Body See below
    {
      "participants": {
        "attendees": [
          {
            "upn": "******@domain.tld",
            "role": "coorganizer",
            "identity": {
              "application": null,
              "device": null,
              "user": {
                "id": "i-represent-a-microsoft-guid",
                "displayName": null,
                "tenantId": "i-represent-a-microsoft-guid"
              }
            }
          }
        ]
      }
    }
    
    0 comments No comments

  2. Bhanu Kiran 3,616 Reputation points
    2022-12-28T01:10:42.21+00:00

    Hi @Ritik joshi ,

    You can request /me/onlineMeetings/createOrGetAPI, and then add the organizer to the request body.

    274416-image.png

    Please refer the below links
    https://learn.microsoft.com/en-us/graph/api/onlinemeeting-createorget?view=graph-rest-1.0&&tabs=http

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.


Your answer

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