- 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.
How to specify participants when creating new Teams meeting using onlineMeetings API
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"
}
}
}
],
5 answers
Sort by: Most helpful
-
Deva-MSFT 2,256 Reputation points Microsoft Employee
2021-03-21T09:35:49.56+00:00 -
Tom 6 Reputation points
2021-03-24T11:08:09.77+00:00 Bump in case anyone else has any suggestions!
-
Tobi 1 Reputation point
2021-03-31T09:47:04.607+00:00 Same problem here. Also no solution.
-
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?
-
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 changeallowedPresenters
toroleIsPresenter
. See https://learn.microsoft.com/en-us/graph/api/resources/onlinemeeting?view=graph-rest-1.0#onlinemeetingpresenters-values