Can Entra External ID send an email to a user on account deletion

MattScott-2299 0 Reputation points
2024-06-18T10:56:06.9366667+00:00

We have adopted Entra External ID as our CIAM for our consumer mobile app.

The end user can request that their account be deleted. We have a requirement to send an email to a user to confirm that their account has been deleted.

The deletion process concludes with removal of the user from our Entra tenant. Is it possible for Entra External ID to email the customer when their record is deleted?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,931 questions
{count} votes

3 answers

Sort by: Most helpful
  1. 2024-06-18T13:56:44.4833333+00:00

    Hello, you can get notifications through Microsoft Graph API change notifications.

    Eg.

    POST https://graph.microsoft.com/v1.0/subscriptions
    
    {
        "changeType": "
        "resource": "users",
        "clientState": "your_custom_state",
        "notificationUrl": "https://your-webhook-endpoint.com"
    }
    

    Let me know if you need additional or more detailed guidance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.


  2. Shweta Mathur 29,861 Reputation points Microsoft Employee
    2024-06-19T05:39:51.21+00:00

    Hi @MattScott-2299 ,

    Thanks for reaching out.

    As of now, there is no customize way to integrate mail or send mail with External ID for customers.However the team is working on email customization, and it is good to have this functionality as well.

    As this feature keep on evolving, I would suggest you post this idea at the Azure Feedback Portal, which is monitored by the product team for feature enhancements.

    Hope this will help.

    Thanks,

    Shweta

    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments

  3. James Hamil 25,636 Reputation points Microsoft Employee
    2024-07-08T16:15:55.5133333+00:00

    Hi @MattScott-2299 , unfortunately this is not supported at the moment. You can use Entra External ID APIs to achieve this functionality though.

    You can use the Entra External ID APIs to delete the user's account and then send an email to the user to confirm that their account has been deleted. You can use any email service provider to send the email.

    Here are the high-level steps to achieve this functionality:

    1. Use the Entra External ID APIs to delete the user's account.
    2. After the account is deleted, use an email service provider to send an email to the user to confirm that their account has been deleted.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    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.