<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
0D51Y00006G5LlaSAFOkta Classic EngineAdministrationAnswered2024-04-15T11:20:08.000Z2019-05-15T10:11:20.000Z2019-06-04T22:12:33.000Z
  • Hi Daniel,

     

    This is Marius from Okta support.

    In order to modify the security question and answer you can use the bellow API call:

    https://developer.okta.com/docs/api/resources/users/#change-recovery-question

     

    In order to not use the password you can modify the call to use PUT instead of a POST and have the body as follows:

    PUT /api/v1/users/00u248mc69Ve6EnmH2p7 HTTP/1.1

    Host: bfn.okta.com

    Accept: application/json

    Content-Type: application/json

    Authorization: SSWS 00WhbqxfC4y31pMOhJ9hN1qEhRHUuvMDJTIRBih3kI

    User-Agent: PostmanRuntime/7.11.0

    Cache-Control: no-cache

    Postman-Token: c0595dda-3ef8-41e1-a924-58da928ff0c3,816dda60-ba37-4d36-a26e-e3e98df1282f

    Host: bfn.okta.com

    cookie: JSESSIONID=69E1ED615409F4D9782B860C6CF52CFB

    accept-encoding: gzip, deflate

    content-length: 146

    Connection: keep-alive

    cache-control: no-cache

     

    {

     "credentials": {

      "recovery_question": {

       "question": "Who's a major player in the cowboy scene?",

       "answer": "avion"

      }

     }

    }

     

    Expand Post
    Selected as Best
  • Hi Daniel,

     

    This is Marius from Okta support.

    In order to modify the security question and answer you can use the bellow API call:

    https://developer.okta.com/docs/api/resources/users/#change-recovery-question

     

    In order to not use the password you can modify the call to use PUT instead of a POST and have the body as follows:

    PUT /api/v1/users/00u248mc69Ve6EnmH2p7 HTTP/1.1

    Host: bfn.okta.com

    Accept: application/json

    Content-Type: application/json

    Authorization: SSWS 00WhbqxfC4y31pMOhJ9hN1qEhRHUuvMDJTIRBih3kI

    User-Agent: PostmanRuntime/7.11.0

    Cache-Control: no-cache

    Postman-Token: c0595dda-3ef8-41e1-a924-58da928ff0c3,816dda60-ba37-4d36-a26e-e3e98df1282f

    Host: bfn.okta.com

    cookie: JSESSIONID=69E1ED615409F4D9782B860C6CF52CFB

    accept-encoding: gzip, deflate

    content-length: 146

    Connection: keep-alive

    cache-control: no-cache

     

    {

     "credentials": {

      "recovery_question": {

       "question": "Who's a major player in the cowboy scene?",

       "answer": "avion"

      }

     }

    }

     

    Expand Post
    Selected as Best

Loading
remove or reset security question