cancel
Showing results for 
Search instead for 
Did you mean: 

How to read outlook email from blue prism graph api - outlook email

vineetkumar
Level 3
Hi team,

I need to read email from office 365 outlook , and move emails to different folders.
what i understand  we need to use Microsoft graph authentication. but  which one Get application access token or  delegated access token 

what permissions i need to give  in azure to read write emails 

after authentication object  what object do i need to use 
Function for Microsoft 365 - Outlook - 1.3.2 ??
1 REPLY 1

jsantiago08
Level 4


In Microsoft Graph, you have two main types of authentication:

Application Access Token: Used when your application needs to access resources on behalf of itself, not on behalf of a specific user. This method is often used for background services or daemons.

Delegated Access Token: Used when your application needs to access resources on behalf of a user. This means the user's permissions are taken into account, and the application can only do what the user is allowed to do.

For reading and writing emails using Microsoft Graph in Azure, you'll need to set the following permissions:

For Application Permissions (without a signed-in user):

Mail.ReadWrite - Allows the app to read, update, create, and delete email in all mailboxes without a signed-in user.
Mail.Send - Allows the app to send mail as any user without a signed-in user.
For Delegated Permissions (on behalf of a signed-in user):

Mail.ReadWrite - Allows the app to read, update, create, and delete the signed-in user's email.
Mail.Send - Allows the app to send mail as the signed-in user.

Use the Microsoft Authentication Library API, MSAL to acquire the access token to Microsoft Graph.