Forbidden on teams meeting request with graph api

Umut Topuz 0 Reputation points
2025-02-19T01:17:05.8133333+00:00
"error": {
        "code": "Forbidden",
        "message": "",
        "innerError": {
            "request-id": "794cc8f3-6ad6-453c-8e07-9695b47d1f7b",
            "date": "2025-02-19T01:05:00",
            "client-request-id": "794cc8f3-6ad6-453c-8e07-9695b47d1f7b"
        }
    }


I'm having this error when I try to send request for "https://graph.microsoft.com/v1.0/users/$user_id/onlineMeetings" from ******@markaxstanbul.com

I'm having this error when I try to send request for "https://graph.microsoft.com/v1.0/users/$user_id/onlineMeetings" from ******@markaxstanbul.com
I have all the necessary permissions as stated below. Would be glad if you can assist me on that problem. Thanksresim

Microsoft 365 and Office Install, redeem, activate For business Windows
Microsoft Teams Development
Microsoft Security Microsoft Graph
Microsoft Teams Microsoft Teams for business Other
{count} votes

1 answer

Sort by: Most helpful
  1. Rajat Vashistha-MSFT 1,690 Reputation points Microsoft External Staff
    2025-02-19T08:24:28.29+00:00

    Hi Umut Topuz,

    Thanks for reaching out to Microsoft!

    It seems you're trying to use the User Principal Name (UPN) in the user ID field, but this API does not support UPN yet. You must use the user's ID to get the online meeting.

    Here's how you can do it Use Postman with the Microsoft Graph API

    1. Run the following API in Postman:
            https://graph.microsoft.com/v1.0/users/{UserPrincipalName}
      
      1. Copy the "Id" from the result.
    2. Then, run:
            /users/{id}/onlineMeetings 
      
      referring to the Create onlineMeeting documentation.

    Hope this helps.

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

    0 comments No comments

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.