Trigger a logic app on user creation in AAD and make use of UPN available in audit log

Manikanta Macharla 1 Reputation point
2022-11-15T07:58:15.857+00:00

I have a logic app that can be manually triggered or time triggered to invite the users. I wanted to make use of the audit log to see the user UPN's in tenant1 on creation. These UPN's has to be passed as parameters to invite users(Guest) to tenant2 and also there should be some condition to trigger the logic app whenever the user is created in tenant1 that triggers the logic app.

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,011 Reputation points
    2022-11-18T03:27:36.86+00:00

    @Manikanta Macharla Thanks for reaching out. Logic app does provide the Azure AD connector but unfortunately there are no trigger that can help you with your use case.

    So, you need to leverage the Microsoft Graph APIs that provide ways to keep track of changes and you could choose the one that best suits your requirements

    1. Polling for changes using delta queries
    2. Get notified when there are changes by subscribing to changes
    3. Check Audit Logs for any changes
    0 comments No comments