Logic app to send email to user (actor) automatically when there is some incident with email address or upn

sachin raj 0 Reputation points
2025-05-28T16:02:12.1566667+00:00

Hi

Is there any way to get user involved in Microsoft alert (mostly for high and medium severity) in logic apps and then send email alert to them automatically. In To section as per below image, it should get UPN or email address of user

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Praveen Kumar Gudipudi 1,875 Reputation points Microsoft External Staff Moderator
    2025-05-30T19:02:52.29+00:00

    Hello @sachin raj,

    Please follow below instructions to configure the logic app.

    1.Create logic app with when HTTP request receive connector.

    User's image

    1. Go alerts action group>> Actions >> select logic app >> Save

    User's image

    1. Now trigger the logic app from alert to generate payload. (wait for alert). after alert generated please check the logic app run history.

    User's image

    1. click on the run and copy http connector raw out put.( there you can see alert data)

    User's image

    1. Go to logic app designer >> click on Http connector>> Click on use sample payload to generate schema>> Now paste the http raw out put.>> done.

    User's image

    1. Please add send email connector in logic app and configure the dynamic values from http connector as you required in send an email like to address and subject, body.

    User's image

    If this answer was helpful, please click "Accept the answer" and mark Yes, as this can help other community members.

    User's image

    If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.

    0 comments No comments

  2. Joseph Kuria Njiraini 0 Reputation points
    2025-05-30T20:14:12.3733333+00:00

    Yes! You can fetch user emails/UPNs in Logic Apps for alerts using:

    1. Microsoft Graph API – Call https://graph.microsoft.com/v1.0/users/{userId} to retrieve the user’s email from the alert payload.
    2. Alert Entities – If using Sentinel/Defender, check the alert’s "Entities" section for user details.
    3. Action Groups – Configure dynamic email recipients in Azure Monitor.

    For high/medium alerts, add a severity filter in your Logic App. Which alert service are you using? This helps tailor the solution."

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.