It's possible to get the event message with the Mail.Read permission?

Lucas Pederzini 0 Reputation points
2024-02-14T17:16:34.7166667+00:00

I have an API that access the user outlook and save the emails in our system.
We currently use the Mail.ReadWrite permission.
One of our clients received an email which was an invite for o outlook calendar task. However, when our API tries to get the body of the message, that box to accept or decline an invitation does not appear.
box

I realized that i have to get this info from the Events objects.
I tried to get it from 'https://graph.microsoft.com/v1.0/me/messages/{messageid}/?$expand=microsoft.graph.eventMessage/event'

But I'am getting "Error access denied" as a result.

Can anyone help me with any insight?
I think that I have to change the permission of my app but i'm not sure

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,308 questions
0 comments No comments
{count} votes

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.