Skip to main content

Notifications

Announcements

No record found.

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 500

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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: PowerAutomate to trigger off user access audit or just from user login

    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.

  • Suggested answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,321 on at
    RE: PowerAutomate to trigger off user access audit or just from user login

    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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans