How to trigger function when azure active directory user Data update.

Digvijaysinh Zankat 45 Reputation points
2023-04-23T06:34:44.42+00:00

Using Azure Functions, I have developed a Webhook for managing user creation, updates, and deletions in Azure Active Directory.
To enhance its functionality, I aim to include a trigger that specifically detects updates to the email address of an Azure AD user.
Upon detecting such changes, the Azure function will be utilized to update the corresponding email address in the database.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Graph
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2023-04-26T18:18:35.3766667+00:00

    Digvijaysinh Zankat Supported triggers are listed here and there is no trigger specifically for Azure AD changes. Based on article https://blog.darrenjrobinson.com/subscribing-to-azure-ad-change-notifications-with-powershell/ you can set up Azure AD Change notifications and use NotificationURL to trigger Azure Functions via HttpTrigger.

    I see you are interested only in email address update; however, I don't see it is supported as per doc: Supported resources but you can have changeType user (user resource type). (Similar discussion)

    I hope this helps with your question and let us know if you have any other.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.