Khentz19
Khentz19

Reputation: 11

Proper apps permissions from azure AD to grant access on Microsoft Graph

Proper apps permissions from azure AD to grant access on Microsoft Graph where we can extract users emails information like To, From, Cc, Bcc, Subject.

Tried to grant all access but still encountering an access denied error.

None

Expected result will show users emails information like To, From, Cc, Bcc, Subject.

Upvotes: 0

Views: 62

Answers (1)

Joy Wang
Joy Wang

Reputation: 42043

I suppose you want to use the Microsoft Graph - Get message, it returns the message object which has the properties you want.

If you want to call the Microsoft Graph without a user, you need the Application permission Mail.Read. You just need to create an Azure AD Application and grant the permission for it, the application permission Mail.Read need admin consent, so don't forget to grant admin consent, about consent an application, see this link. For more details about all the steps, see Get access without a user.

If you want to call the Microsoft Graph on behalf of a user, you need the Delegated permission Mail.Read, more details see Get access on behalf of a user.

Besides, if you want to get a message in another user's mail folder, please note the information as below, see Get message.

enter image description here

Upvotes: 1

Related Questions