
AntonioC.25074 (Customer) asked a question.
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