web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

PowerAutomate to trigger off user access audit or just from user login

(0) ShareShare
ReportReport
Posted on by 502

Has anyone built a PowerAutomate that either triggers when a User Access Audit has been created or when a user logins in?  

Looking to update a date/time field when we detect a user has logged into Dynamics.  

Reason: Today we have a daily run SSIS job that pulls all user access audits and gets the latest user login by user and updates a field called Last User Login.

I'd sure love to eliminate the need for this SSIS job.

I have the same question (0)
  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Hi,

    Thank you for your query.

    It seems like triggers are not available for Azure AD events.

    For now, you can replace your SSIS JOB with a scheduled flow (instead of triggered) and get the sign-ins info.

    Later on once the trigger is available you can update the same flow to run on a trigger.

    Let me know if you have further questions.

    Best,

    Wahaj

  • Community Member Profile Picture
    on at

    Hi Shannon,

    I notice that the system will create audit record when user login dynamics if you check ‘audit user access’, you can use audit record create as trigger.

     pastedimage1608012845986v2.png

    In audit summary view, the ‘operation’ of user access record is ‘Access’, you can use it’s value as condition in the flow.

    pastedimage1608012810214v1.png

    In the flow, you can use ‘When a record is created’ ad trigger.

     pastedimage1608013808620v5.png

    Add ‘get a record’ action to get body, the operation value is stored in it.

     pastedimage1608013887908v6.png

    Add ‘compose’ action to get operation label value.

     pastedimage1608013424838v3.png

    Add condition, if operation value is ‘Access’, you can do actions you need.

    pastedimage1608013739086v4.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 58 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 42

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans