Calendar api giving error

Allan Deyoung 20 Reputation points
2023-04-05T10:22:30.56+00:00

I am trying to get "attendanceReports" of a specific "onlineMeeting" with the following query: "https://graph.microsoft.com/v1.0/users/{OrganizerId}/onlineMeetings/{MeetingId}/attendanceReports", where "OrganizerID" is another user's ID, not mine. However, I am getting the error,

"Organizer ID in token({myUserId}) does not match organizer ID in request url({OrganierID}). With delegated permission only /me endpoint is supported."

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

Accepted answer
  1. Anonymous
    2023-04-05T10:45:33.5133333+00:00

    Hello Allan Deyoung,

    Thanks for reaching out!

    As per my investigation, you can't retrieve the attendanceReports of an onlineMeeting if you are not the organizer for that specific onlineMeeting. Additionally, with delegated permissions only /me endpoint is supported. Please use Application Permission instead.

    To use application permission for this API, tenant administrators must create an application access policy and grant it to a user. This authorizes the app configured in the policy to fetch online meetings and/or online meeting artifacts on behalf of that user (with the user ID specified in the request path). For more details, see Allow applications to access online meetings on behalf of a user.

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

    0 comments No comments

0 additional answers

Sort by: Most helpful