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 Automate - Building Flows
Unanswered

Reset a user's Microsoft password and force them sign-out of all active sessions using an automated cloud flow trigged by an email with a keyword and the user's email address in the subject

(0) ShareShare
ReportReport
Posted on by 42

Hi all. I am wondering if it is possible to use a cloud flow to reset a user's Entra ID password and force a sign-out of all active sessions, basically use both of these settings in one flow:

 

DanJECC_0-1719544973421.png

 

There may also be other security measures included as well, such as resetting MFA.

 

This flow would be triggered by sending an email to a mailbox monitored by PA, with the subject containing a keyword to trigger the specific flow, and the email address of the user to be reset. This way multiple actions could be activated quickly and easily, even by someone who isn't an admin (if they are given the keyword and email address).

 

I'm assuming this will require the use of API connections (I already have a PA Premium licence). Can anyone advise if this would be possible, and point me down the path to achieving this?

I have the same question (0)
  • Expiscornovus Profile Picture
    32,836 Most Valuable Professional on at
    Re: Reset a user's Microsoft password and force them sign-out of all active sessions using an automated cloud flow trigged by an email with a keyword and the user's email address in the subject

    Hi @DanJECC,

     

    It looks like this should be possible by using the Graph API.

     

    My suggestion would be to combine the below two methods of the Graph API:

    - resetPassword, https://learn.microsoft.com/en-us/graph/api/authenticationmethod-resetpassword?view=graph-rest-1.0&tabs=http

    - revokeSignInSessions, https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=http

     

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard