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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Best trigger to detect...
Power Automate
Unanswered

Best trigger to detect disabled users and revoke sessions in real time?

(0) ShareShare
ReportReport
Posted on by

Hey everyone!

 

I'm trying to build a Power Automate flow that actively monitors for disabled Azure AD users and automatically revokes their active sessions through Microsoft Graph (for example, using revokeSignInSessions).

 

I’m struggling to find the best trigger for this scenario — ideally something that fires in real time when a user is disabled, rather than relying on a scheduled recurrence.

 

Has anyone implemented something like this or found a reliable approach (maybe via Entra ID logs, Graph webhooks, or another connector)?

 

Any suggestions would be greatly appreciated!

Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,628 on at
    Best trigger to detect disabled users and revoke sessions in real time?
    I don’t think this can be triggered directly from Power Automate, but you can automate it using Azure.
     
    Two possible approaches:
    Enable Entra ID audit/event logs and route them to an Azure Function or Logic App
    When a user is disabled, Entra ID writes an “Update user” audit log where accountEnabled changes to false.
    You can stream these logs to Event Hub or Log Analytics and trigger an Azure Function/Logic App from there.
     
    Use Microsoft Graph change notifications (subscriptions)[not sure if we have for user modifications]
    You can subscribe to user updates via Graph API and receive a webhook whenever a user is modified.
    In your webhook logic, check if accountEnabled became false and trigger your automation.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard