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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Two step authenticatio...
Power Automate
Unanswered

Two step authentication password possible to automate using Power Automate

(0) ShareShare
ReportReport
Posted on by

Hi Community!

 

Hope you are all doing well today!

Was wondering if anyone had some experience and insights to share on the following inquiry while using Power Automate to automate internal business processes:

Can Power Automate handle 2 step password authentication – meaning for the PAD-bot/flow is it able to stop and allow the end user to enter a generated code sent via email?

Or since the each successful logon would have a newly generated web app verification code sent to the user id’s email address, so the user would have to retrieve that, then enter it in – is that possible to automate in PA?

 

Any shared feedback are greatly appreciated - Mahalo!

 

 

I have the same question (1)
  • VJR Profile Picture
    7,635 on at

    Is this an attended automation? Meaning - will the user start the bot -> Flow will do the 1st level authentication -> Then user receives the email and enters the verification code for the 2nd level -> Flow continues

     

    You can have the Flow wait until something changes on the screen after the user enters the code. Give a timeout so that it doesn't wait forever.

     

    Wait for webpage content:

    Suspend the flow until a specific piece of text or web page element appears or disappears from a web page

    https://docs.microsoft.com/en-in/power-automate/desktop-flows/actions-reference/webautomation#waitforwebpagecontentaction

     

  • Community Power Platform Member Profile Picture
    on at

    Thank you VJR!  yes, for this one, hoping PA can automate. I have the first part down meaning, the bot will-can already enter in the user id and password. Once, these login credentials are entered, another box pops up, asking for a web application code to be entered in. This code gets generated and is sent to the user's email (Outlook). Each web app code is valid for at least 30 mins and expires.  So, because this gets uniquely generated each time, just wondering if using the recorder to record the step, if it is possible for the bot to handle this as well.

     

    I see your suggestions and will try and let you know.

    Thank you again - @Anonymous

  • Community Power Platform Member Profile Picture
    on at

    Hi VJR, 

     

    For MFA – After using PA to automate to enter in user id and password credentials, the web browser screen then displays the second part of authentication where it sends the web application verification code in an email to my outlook account. In PA, the next step I used was to Launch Outlook, then to Retrieve email messages from Outlook.  After running it, it does open my outlook and turns the new email notification with the temporary web app verification code to as if it had been Read. I then tried to use the Record option to record and log the steps right after, going into the email and copying the code, then return to the web browser screen to enter the code then click the submit button. However, when I play it back in PA, it does not go to the same email. I am wondering if, there is something I need to do with a specific variable when doing so?  Only because, each time I do this action the web app verification code in the email will change each time credentials are entered. Hope this makes sense rather long, but is this the best practice thing to do in this case?

     

    Any feedback is appreciated!

     

    Thank you again - @Mena88

  • VJR Profile Picture
    7,635 on at

    After Launch Outlook -> Retrieve emails -> Then there is no need to use the recorder.

    The "Retrieve emails" action will return a datatable which will give the email body and will also have the verification code in it. Not sure if the code is in text or an image.

     

    The emails are getting marked as "Read" because I believe the "Retrieve emails" action has a parameter to mark the email as read or keep it as unread.

     

    If this is not the case then I haven't fully understood the issue.

     

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard