Forum Discussion
Eric_Logsdon
Jun 02, 2025Brass Contributor
403 error sending email in Exchange online using Graph API
I am implementing an Azure Function App to notify logged in users before their Azure virtual machine is shut down. (Github repository is here https://github.com/fortytwoservices/AVD-Shutdown) I have ...
VasilMichev
Jun 03, 2025MVP
The permission needs to be stamped on the service principal as well, you are using the Graph's sendMail method so Exchange permissions on their own are not sufficient.
Eric_Logsdon
Jul 08, 2025Brass Contributor
Sorry for the delay. I didn't see the notification for your reply. I added Mail.Send permissions to the function app and I am still receiving a 403 Forbidden. I set the mail.send permissions in Entra in the AppRegistrations screen:
Was this correct?
Thank you.