I'm Getting an Error: Creating an Online Meeting with the Microsoft Graph API

Hayati Ali Keleş 0 Reputation points
2024-03-29T15:01:18.25+00:00

Hello, I am developing an application using Microsoft Graph API and I want to create online meetings on the user's behalf. I am confident that I have the necessary permissions (specifically OnlineMeetings.ReadWrite) for my application. However, when I try to create an online meeting I get the following error:

JSON

User's image

    

When I check the permissions through the Azure portal, I can see that administrator and user approval has been given for the OnlineMeetings.ReadWrite permission. In the token import process, I specify the scope parameter as follows: openid profile OnlineMeetings.ReadWrite. However, this permission does not appear in the token response. Do you have any ideas or suggestions as to what might cause this problem? I've also included screenshots of how the admin approval for this permission will appear in the app log. Thank you.image

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,595 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 36,976 Reputation points
    2024-04-01T08:20:11.3733333+00:00

    Hi @Hayati Ali Keleş

    If you are creating an online meeting on behalf of a user, then you need to ensure that you are requesting the access token using the auth code flow with user participation and not the client credentials flow.

    Additionally, you need to ensure that the target user is a work account with an MS 365 license and not a personal account.

    User's image

    Hope this helps.

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

    0 comments No comments