question

MarkusJohansson-1808 avatar image
0 Votes"
MarkusJohansson-1808 asked FrankPeng-5947 answered

OnlineMeeting and meetingAttendanceReport returns forbidden

I'm trying to get the meetingAttendanceReport data for a meeting that has been ended.

I do get the data in the Graph Explorer, when the token is generated by the Graph Explorer but when I use the tokens created by my app it does not work. I have tried both "Delegated Permissions" and "Application Permissions" but the endpoint keeps returning

{
"error": {
"code": "Forbidden",
"message": "Forbidden",
"innerError": {
"date": "2021-05-06T11:58:26",
"request-id": "....",
"client-request-id": "...."
}
}
}

I've used https://jwt.ms/ to look at the scope's of the tokens and they use the same scopes, they are not identical but the relevant scopes (OnlineMeetings.Read and OnlineMeetings.ReadWrite) is there so I don't understand why I can't get the data from POSTMAN but it works in Graph Explorer.

I can also add to this that when I request:

https://graph.microsoft.com/beta/users/{a-user-id}/onlineMeetings/{meeting-id}

I do get the data for the meeting, but when adding

https://graph.microsoft.com/beta/users/{a-user-id}/onlineMeetings/{meeting-id}/meetingAttendanceReport

The response changes to "forbidden"



Where should I start? Is there any way to see the reson to why the request is forbidden?

microsoft-graph-teamwork
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DianaWanjuhi-1579 avatar image
0 Votes"
DianaWanjuhi-1579 answered

Hello @MarkusJohansson-1808 from the meeting attendance report documentation only the meeting organiser can see attendance reports, is that the same user you are fetching the report for in the request? Also would you kindly share the request-id so we can help debug?

Diana.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarkusJohansson-1808 avatar image
0 Votes"
MarkusJohansson-1808 answered

@DianaWanjuhi-1579 Thank you for getting back and for looking in to this!

Yes, the user is the organizer, and it does work in the Graph Explorer (the same user) but not when the token is created from for my application using (https://login.microsoftonline.com/{my-tenantId}/oauth2/v2.0/token).

I've tried with "Application Tokens" and "Resource-owner password credentials grant flow"-token (a application that "acts" as the user).

Given so in both cases, this would return the meeting:

https://graph.microsoft.com/beta/users/{a-user-id}/onlineMeetings/{meeting-id}

But this would return the error (Forbidden):

https://graph.microsoft.com/beta/users/{a-user-id}/onlineMeetings/{meeting-id}/meetingAttendanceReport

Here is an error that I just triggered just now.

{
"error": {
"code": "Forbidden",
"message": "Forbidden",
"innerError": {
"date": "2021-05-07T10:49:44",
"request-id": "b32211ff-0e1f-4d25-945c-473c148801e8",
"client-request-id": "b32211ff-0e1f-4d25-945c-473c148801e8"
}
}
}

The "act as"-thing do work for other end points in the API so its not a Policy-issue as far as I can tell.

Thanks again for helping out!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FilippoOrru-4902 avatar image
0 Votes"
FilippoOrru-4902 answered

Hi! I have the same issue and it seems we're not alone. Here's the relevant github issue: https://github.com/microsoftgraph/microsoft-graph-docs/issues/12670

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarkusJohansson-1808 avatar image
0 Votes"
MarkusJohansson-1808 answered

Thanks @FilippoOrru-4902 ! I'll make sure to post in the github-issue as well. Please if you find out anything share it =D I'll promise to do the same.

Cheers!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

FrankPeng-5947 avatar image
0 Votes"
FrankPeng-5947 answered

Hi guys, thank you for trying out the new API. Please see updates on this issue in the GitHub issue.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.