Forum Discussion
Dean_Gross
Mar 29, 2022Silver Contributor
Account for Sending Email in Playbook/Logic App
By default, the account used to send an email from a playbook is for a human user and when they leave the organization, the playbook will break. How are others handling this scenario?
Thijs Lecomte
Mar 29, 2022Bronze Contributor
I always recommend using a custom HTTP action with the Graph API and a Managed Identity. This will allow you to send emails without needing a specific username/password
Dean_Gross
Mar 29, 2022Silver Contributor
Thanks, any chance you have instructions for doing this?
- Thijs LecomteMar 30, 2022Bronze ContributorThis is shows how to do it using Powershell and limit the permissions: https://www.senserva.com/2021/06/09/sending-email-through-the-graph-api-securely-application-permission-scoping/
With this, it's just using an HTTP action instead