Error in Create onlineMeeting

Marion 0 Reputation points
2024-09-23T15:21:16.4666667+00:00

Hello,

I'm having troubles with https://graph.microsoft.com/v1.0/me/onlineMeetings.

I have configure an application in my entra with the scope:

OnlineMeetings.ReadWrite profile openid email

In my php application, I request access on behalf of a user.

I have received a valid token but when I try to reach the online Meetings endpoint with it, I have an error:

"error": {
        "code": "BadRequest",
        "message": "15000: An error has occurred.",
        "innerError": {
            "date": "2024-09-23T15:01:16",
            "request-id": "d9eae052-d6fb-477a-8fe1-7ee657b86a62",
            "client-request-id": "8de40ce1-f89d-7621-3903-6751792849f6"
        }
    }

And the request body is the same of the documentation :

{
    "startDateTime": "2019-07-12T14:30:34.2444915-07:00",
    "endDateTime": "2019-07-12T15:00:34.2464912-07:00",
    "subject": "User Token Meeting"
}

Can someone help me, please ?

Marion

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,020 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yakun Huang-MSFT 4,720 Reputation points Microsoft Vendor
    2024-09-24T02:24:28.9233333+00:00

    Hi @Marion

    I tested this endpoint in Graph Explorer and it worked fine, with the following results:

    Screenshot 2024-09-24 021311

    It is recommended that you test in Graph Ecxplorer first, noting that the request method uses POST, and that the tokens you get can be parsed in jwt.ms to see the token permissions.

    Refer to the documentation for code that uses php to send requests.

    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

  2. Marion 0 Reputation points
    2024-09-24T10:05:27.7466667+00:00

    Hello again,

    I have found the reason of my problem: I didn't have a proper licence for using microsoft api.

    We have bought one for a user. And when I connect with it, the result of reaching onlineMeetings endpoint was successfull.

    Marion


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.