The Okta Users API can be used to set passwords for an Okta user. The user will not be prompted to update the password and this will also not change the user's status.
- Users API
- User Lifecycle Management
The following API call (POST request) can be used to set a password for a user.POST: {{url}}/api/v1/users/{{userId}}
with the following body
{
"credentials": {
"password" : { "value": "password" }
}
}
NOTE: The above example assumes that Postman is used to make this API call with the {{url}} and {{userId}} variables set. If making this API call using a different API client or otherwise do not have these variables set, please set these variables or change this information. {{url}} represents the URL of the Okta org (https://example.okta.com) while {{userId}} should represent the user ID of the Okta user that needs to update the password. With this in mind, a complete Okta API call to this endpoint would resemble the following:POST https://example.okta.com/api/v1/users/00ueajxzfrkn7bFw5107
A link to the complete Users API documentation is available below for reference.
