How to specify participants when creating new Teams meeting using onlineMeetings API

Tom 6 Reputation points
2021-03-19T22:10:16.24+00:00

I am trying to create Teams meetings programmatically using the onlineMeetings API endpoint. I'm having trouble setting the meeting attendees. Although I specify a valid UPN, user id, Azure AD tenant ID, and role of 'presenter', the attendee is added using 'MSA' (Microsoft account?) with a role of 'attendee' - see below.

Can anyone advise if I'm missing something?

Thanks!!

Relevant part of my request:

    "participants": {
        "attendees": [
            {
                "upn": "<upn>",
                "role": "presenter",
                "identity": {
                    "user": {
                        "id": "<user id>",
                        "tenantId": "<tenant id>",
                        "identityProvider": "AAD"
                    }
                }
            }
        ]
    }

The response from Graph API:

    "participants": {
        "attendees": [
            {
                "upn": "<upn>",
                "role": null,
                "identity": {
                    "phone": null,
                    "guest": null,
                    "encrypted": null,
                    "onPremises": null,
                    "applicationInstance": null,
                    "application": null,
                    "device": null,
                    "user": {
                        "id": "<user id>",
                        "displayName": null,
                        "tenantId": null,
                        "identityProvider": "MSA"
                    }
                }
            }
        ],
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,540 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,834 questions
{count} vote

5 answers

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2021-03-21T09:35:49.56+00:00
    • If you already created a new onlinemeeting and want to add participants then you can use participants property to do it in the request body - the participants associated with the online meeting. This includes the organizer and the attendees.
      • Also if you're updating/adjusting the attendees field of the participants property, such as adding or removing an attendee to the meeting, always requires the full list of attendees in the request body.
    1 person found this answer helpful.

  2. Tom 6 Reputation points
    2021-03-24T11:08:09.77+00:00

    Bump in case anyone else has any suggestions!

    0 comments No comments

  3. Tobi 1 Reputation point
    2021-03-31T09:47:04.607+00:00

    Same problem here. Also no solution.


  4. barsh 1 Reputation point
    2022-04-22T17:10:49.96+00:00

    Same problem. When attempting to set an attendee role as "presenter", the role was assigned as "attendee". Has anyone solved this yet or found a workaround?

    195580-image.png

    0 comments No comments

  5. barsh 1 Reputation point
    2022-04-26T12:53:23.943+00:00

    The following worked for me.

    By default, every attendee can present, so the API won't allow you to set an attendee's role to presenter unless you also change allowedPresenters to roleIsPresenter. See https://learn.microsoft.com/en-us/graph/api/resources/onlinemeeting?view=graph-rest-1.0#onlinemeetingpresenters-values

    196623-image.png

    0 comments No comments