question

tedo99 avatar image
0 Votes"
tedo99 asked JagadeeshLankiReddy-5847 commented

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"
                     }
                 }
             }
         ],
office-teams-app-devmicrosoft-graph-teamworkmicrosoft-graph-cloud-communications
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Adding right tags/teams to assist

0 Votes 0 ·
Deva-MSFT avatar image
1 Vote"
Deva-MSFT answered tedo99 commented
  • 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.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hey @Deva-MSFT , thanks for your reply.

Yes I think that's what I'm doing in my code block above. The problem is the API doesn't recognise the 'role' property that I'm setting and so defaults everyone to 'attendee', even when I choose 'presenter'. Also, it doesn't recognise the user's AAD account and returns 'MSA' as the identity provider, even though I specify a user ID and tenant ID.

0 Votes 0 ·

Hi @tedo99,

Could you please have a look on this document which has administrator, Azure, and Azure AD roles


0 Votes 0 ·
tobi-2126 avatar image tobi-2126 RamaMohanaCharyAkavarapu-4424 ·

What information in this link is related to the question?

0 Votes 0 ·
Show more comments
tedo99 avatar image
0 Votes"
tedo99 answered

Bump in case anyone else has any suggestions!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

tobi-2126 avatar image
0 Votes"
tobi-2126 answered JagadeeshLankiReddy-5847 commented

Same problem here. Also no solution.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @tedo99/@tobi-2126 , we cannot assign a role using programmatically, by default it will taken as attendee. you can use this example for your scenario.


0 Votes 0 ·