Set New Okta User Passwords Without Verification via API
Last Updated:
Overview
Set a new password for an Okta user without prompting a password update or changing the user status by executing a POST request to the Okta Users API.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Users API
- User Lifecycle Management
Solution
How is a new password set for an Okta user via the API?
Set a new password for a user by executing a POST request to the Okta Users API with the new password defined in the JSON body.
POST <url>/api/v1/users/<userId>
{
"credentials": {
"password" : { "value": "<password>" }
}
}
NOTE: The previous example assumes the use of an API client with the <url> and <userId> variables set. If using a different API client or if these variables remain unset, replace <url> with the URL of the Okta organization (e.g., https://<example.okta.com>) and <userId> with the user ID of the Okta user requiring the password update.
Review the following example of a complete Okta API call to this endpoint.
POST https://<example.okta.com>/api/v1/users/<00ueajxxxxxxxxxx>
