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
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,769 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,898 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,108 questions
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.
3,578 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rajat Vashistha-MSFT 915 Reputation points Microsoft Vendor
    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.