How to access a user's online meeting using graph api via application?

Salman Tanvir 0 Reputation points

I'm trying to access a user's online meeting by providing their userId and joinUrl. I'm using this API:


I've provided the necessary permissions required in the documentation:
Screenshot from 2023-10-31 11-30-11

However, I'm still getting this error while trying to make a request to this API:

      code: 'General',
      message: 'Organizer ID in token(74072a6b-7dce-4aa2-a52d-102be5eb3ef3) does not match organizer ID in request url(9686f40b-57d0-4426-92ed-69f3d01fe9bf). With delegated permission only /me endpoint is supported.',

Any help or guidance would be much appreciated.

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

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 31,971 Reputation points

    Hi @Salman Tanvir

    User tokens requested using the delegated authentication flow are only available in the /me context:

    GET /me/onlineMeetings?$filter=JoinWebUrl%20eq%20'{joinWebUrl}'

    If you want to call the /users/{user id} endpoint to get another user's online meeting, then you need to request an app-only token using the client credentials flow. Please note that to use application permission for this API, tenant administrators must create an application access policy and grant it to a user to authorize the app configured in the policy to fetch online meetings and/or online meeting artifacts on behalf of that user (with user ID specified in the request path).

    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.