<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
0D50Z00008djyx4SAAOkta Classic EngineLifecycle ManagementAnswered2018-12-03T19:36:04.000Z2018-11-26T15:35:59.000Z2018-12-03T19:36:04.000Z

AntonioC.25074 (Customer) asked a question.

Tried to reset a person Secret question via the api

Hi I tried to reset a person Security Question via the api and got

 

{

  "errorCode": "E0000036",

  "errorSummary": "Change recovery question not allowed on specified user.",

  "errorLink": "E0000036",

  "errorId": "oaeyEVEOQV6RmCKZ-3chT38yw",

  "errorCauses": []

}

 

The info online are not very clear on what this could mean.. I am assuming the user will have to be in certain state for this to execute? Like not logged in or in a staging or suspended state?

 

Thanks in advance for the feedback.


  • Hi Antonio, 

     

    Thank you for reaching out to the Okta Community!

    The User's API documentation should provide additional insight into things:

     

    https://developer.okta.com/docs/api/resources/users

     

    For brevity and ease of access here is a copy:

    "Change Recovery Question

     

    POST /api/v1/users/${userId}/credentials/change_recovery_question

     

    Changes a user’s recovery question & answer credential by validating the user’s current password

    This operation can only be performed on users in STAGED, ACTIVE or RECOVERY status that have a valid password credential "

     

    You could also try the "Set Recovery Question & Answer" API call (please see above documentation for details).

     

    Regards,

    Mihai Negoita

    Technical Support Engineer

    Okta Global Customer Care

    Expand Post
This question is closed.
Loading
Tried to reset a person Secret question via the api