<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007ge7B4CAIOkta Classic EngineMulti-Factor AuthenticationAnswered2022-05-30T14:18:59.000Z2022-05-26T11:56:18.000Z2022-05-30T14:18:59.000Z

ElioT.93871 (Customer) asked a question.

MFA Reset via API

I am trying to create a Webbhook from Jira workflow to execute a MFA reset when the user ask for it. I want to enroll for all providers. I am not sure of the following steps:

1- Reset Factor (DELETE / api / v1 / users / $ {userId} / factors / $ {factorId}),

2 - after Enroll Factor (POST / api / v1 / users / $ {userId} / factors)

3- and finally Activate Factor (POST / api / v1 / users / $ {userId} / factors / $ {factorId} / lifecycle / activate).

Is it right?

How do I find the factorId parameter?

But what’s the difference between doing delete and reset factor?

Thank you for your time


  • ElioT.93871 (Customer)

    Hi sorry the correct URl is POST {{url}}/api/v1/users/{{userId}}/lifecycle/reset_factors

     

    Selected as Best
  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @ElioT.93871 (Customer)​,

     

    Thank you for posting on the Okta community page!

     

    The steps listed by you are in correct order but to get the factorID of a user you will need to use the List enrolled factors API listed in the documentation provided bellow:

     

    The above API call will list all the enrolled factors of a specific user. Additionally, there is no difference between doing delete and reset factor because in order to reset the MFA of a user through API, you will need to delete the already enrolled factors for the user to be able to go through the enrolment process again or for you to perform the enrolment through APIs.

    Expand Post
  • ElioT.93871 (Customer)

    Hi Flaviu,

    I tried only with Reset All Factors and it works on Postman:

    Post {{url}}/bees/v1/users/{{userid}}/lifecycle/reset_factors

    Do you think that will work also in real case? With WebHook in JIra Workflow?

  • ElioT.93871 (Customer)

    Hi sorry the correct URl is POST {{url}}/api/v1/users/{{userId}}/lifecycle/reset_factors

     

    Selected as Best
This question is closed.
Loading
MFA Reset via API