Issue with Microsoft Graph API call to retrieve online meeting information - User does not have access to lookup online meeting

Elton Todd 30 Reputation points
2023-12-21T17:01:28.4633333+00:00

I'm using the Microsoft Graph API call to lookup online meeting information. I do a get on the following:

https://graph.microsoft.com/v1.0/users/{user id}/onlineMeetings?$filter=JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_Yzk3Yzc3NWEtODI4YS00NDhjLTg2YjctYmQ4NGVlMzExN2Uz%40thread.v2/0?context=%7b%22Tid%22%3a%223601a833-068e-4286-b78e-1565a6002a05%22%2c%22Oid%22%3a%22bd685f03-a283-4aae-9ebd-7658b35da63a%22%7d'

and get the following:

{"error":{"code":"Forbidden","message":"3003: User does not have access to lookup meeting"

We have created an application access policy globally for the application we are using to access the URL.

Any thoughts?

Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,371 Reputation points
    2023-12-25T09:52:04.28+00:00

    Hi @Elton Todd

    I can reproduce the issue locally. This error indicates that the current user is not the organizer or attendee of the target meeting and you will be blocked when trying to access the target meeting using someone outside the meeting.

    Before getting the target meeting, add the current user as an attendee of the meeting. You can add attendees by updating the meeting:

    PATCH /users/{userId}/onlineMeetings/{meetingId}
    
    {
        "participants": {
            "attendees": [
                {
                    "identity": {
                        "user": {
                            "id": "{userId}"
                        }
                    },
                    "upn": "{userPrincipalName}",
                    "role": "attendee"
                }
            ]
        }
    }
    

    Get the target meeting using the meeting's organizer or attendees:

    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 additional answers

Sort by: Most helpful

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.