Send email using MS graph

While trying to send an email notification using MS graph as sender in email account we get the below error -

com.pega.pegarules.pub.PRRuntimeException: Caught unhandled exception : Access is denied. Check credentials and try again.

Please note, test connection works fine from email account object. We use OOTB activity SendEmailNotification in Pega-IntegrationEngine RS.

Cant find any supporting details in log.

Any help is much appreciated

Thanks

Sayak

@SayakB The error message indicates an issue with access, which could be due to incorrect or insufficient permissions. You should check the Azure app configuration and the SSL certificate.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

Email Account Using Microsoft Graph As Receiver With Office 365 Email Provider

Issue with gaining access to email account via Microsoft Graph API

If the issue persists, you may need to contact Pega Support via the MSP for further assistance.

Please provide the INC id here.

Pega Platform only supports the Application permission type, so when registering your application with Microsoft Azure, select application permission type, instead of delegated permissions.

@Veeru_16

No , thats not correst statement.

Pega supports delegated permission in addition to application permission.

The problem was different :Although my Service principle has Mail.Send delegated rioght it did not work because the mail box was a shared box. In such case the desired access role is **Mail.Send.Shared (**in delegated access mode)