
9mfpo (9mfpo) asked a question.
Good day!
I’ve tried to change a user password with {{url}}/api/v1/apps/{{appId}}/users/{{userId}} and request:
{
"credentials": {
"password": {
"value": "updatedP@55word"
}
}
}
I got successful response, but the field passwordChanged is null and the user can’t sign in with a new password.
So, Can I update user credentials with this endpoint?
Thank you in advance!

Hi Dmitry,
Thank you for posting your inquiry to Okta Support Community Portal.
That is correct, you should be able to update the user's credentials with the following API endpoint - POST {{url}}/api/v1/apps/{{appId}}/users/{{userId}}. For more details regarding this API endpoint, please review our developer documentation:
https://developer.okta.com/docs/reference/api/apps/#update-application-credentials-for-assigned-user
If that doesn't work, please make sure that the Application is compatible with the authentication schema:
https://developer.okta.com/docs/reference/api/apps/#authentication-schemes
Also, as a test, you can try this on one of your SWA Applications, and then check the credentials of the App on your Homepage by going with your mouse cursor over the SWA App chiclet, click on the cogwheel button (options), and then try and reveal your User App credentials, this way you can check if the App's credentials were successfully updated or not.
https://help.okta.com/en/prod/Content/Topics/Apps/Apps_Revealing_the_Password.htm
If you have any additional questions regarding this topic, please open a Support Case and we would be happy to assist.
Best Regards,
Daniel Capriceru
Technical Support Engineer
Okta Global Customer Care