Generating the secret key for Microsoft

  1. Access the Microsoft account page (https://account.microsoft.com/security).
  2. Select the Security Info tab on the left side of the page.
  3. Verify your account, if required.
  4. Click Add Sign in Method.
  5. Select the Authenticator application from the drop down menu.
  6. Click Next.
  7. Click the I want to use different Authenticator App option.
  8. Click Next.
  9. Click I can’t scan the bar code. The screen displays the Secret Key instead of the QR code. Copy the secret key. This key is used in the Get Microsoft OTP Code activity. Later the authentication code is required to complete the registration of the new authentication app. To retrieve the authentication code, you can use your remote device and scan the QR code or set up this RPA Flow:
    1. Add the Get Microsoft OTP Code activity.
    2. Specify the Secret Key by pasting the value retrieved from the Microsoft website and for the Code create a variable of type String.
    3. Add the Message box to get the generated code.
    4. Define variables for the code in the message property field.
    5. Run the flow and copy the code displayed in the message box.
    6. Paste the code into the authentication app screen in web browser to complete the app registry in Microsoft.

    You can now use the Get Microsoft OTP Code activity within your flow.

    Note: You can also use the Push Notification feature for MFA. Push Notification is applicable only when using RPA in the attended mode of execution.