Set presenter role for a Teams meeting of an Event

Valentin 1 Reputation point
2022-06-15T15:27:16.203+00:00

If I schedule an event in Outlook and tick the Teams meeting option, I can edit the Teams meeting from the Teams' calendar and assign one of the attendees as presenter and they are then able to manage and breakout rooms.

211716-image.png

I need to do the same thing using code and API calls:

I have an application with proper application rights in Azure but for my tests I am using Postman with these same application rights

I am creating an event in Outlook using the create event endpoint as documented here https://learn.microsoft.com/en-us/graph/api/calendar-post-events?view=graph-rest-1.0&tabs=http
And I am using below setting to create a Teams meeting with it

"isOnlineMeeting": true,
"onlineMeetingProvider": "teamsForBusiness"

I am using a service account as the organizer of the event and I need one of the attendees of the event (which is actually someone of authority) to be able to breakout rooms during the Teams meeting. This attendee belongs to the same tenant as the servcie account in AD.

When I create the event, I get the Join URL of the Teams meeting in the response which allows me to get the Teams meeting as documented here https://learn.microsoft.com/fr-fr/graph/api/onlinemeeting-get?view=graph-rest-1.0&tabs=http

From there I can get the online meeting's ID and use it to PATCH it as documented here https://learn.microsoft.com/en-us/graph/api/onlinemeeting-update?view=graph-rest-1.0&tabs=http to set my attendee as "presenter" with the request body:

{"allowedPresenters": "roleIsPresenter",
"participants":{
"attendees":[
{
"identity":
{"@odata.type":"#microsoft.graph.identitySet"},
"upn":"desiredPresenter@myCompany.eu",
"role":"presenter"}
]
}
}

And it seems to be effective as I do see the attendee as "presenter" in the response, before this call they had the "attendee" role:

    "attendees": [  
        {  
            "upn": "desiredPresenter@myCompany.eu",  
            "role": "presenter",  

But it doesn't actually change anything: when joining the Teams meeting this user is still unable to breakout rooms.

Also, I noted that when I set them as presenter manually using Teams' calendar, it does work yet absolutely nothing changes in the online meeting's details when calling the Get onlineMeeting endpoint https://learn.microsoft.com/en-us/graph/api/onlinemeeting-get?view=graph-rest-1.0&tabs=http

How could I achieve this?

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.
1,699 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
5,340 questions
Microsoft Graph Teamwork API
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 2,006 Reputation points Microsoft Employee
    2022-07-26T13:32:38.903+00:00

    You have to set the Assign presenters to manage rooms toggle is on in Room setting.

    1. In the meeting controls, select Breakout rooms Breakout rooms icon .
    2. Select Room settings Settings button.
    3. Switch the Assign presenters to manage rooms toggle on.
    4. If no one in the meeting is designated as a presenter, select Go to Meeting options to add presenters and choose who you want to be a room manager.
    5. Choose presenters from the dropdown menu.

    224884-image.png

    1. Select the back button < to save your changes.

    Thanks,
    Nivedipa


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    No comments