<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
Set a Custom Password for Okta Users
Administration
Okta Classic Engine
Okta Identity Engine
Overview
An Okta admin may find a need to set a custom password for an Okta user, but there is no such option in the Okta Admin Dashboard.

NOTE: Some of the curl code examples on this page include SSWS API token authentication. However, Okta recommends using scoped OAuth 2.0 and OIDC access tokens to authenticate with Okta management APIs. OAuth 2.0 and OIDC access tokens provide fine-grain control over the bearer's actions on specific endpoints. See Okta API authentication methods.
Applies To
  • Custom Password
  • User Management
  • API
Solution

A custom password can be set by an Okta admin only in two scenarios:

  1. When the user is created directly in Okta (Okta Sourced). 
  2. After the Okta-sourced user was created and activated in Okta.

Check out the following video or the steps below.

A custom password, after a user has been created, can be added only through an API call:

curl -v -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: SSWS ${api_token}" \
-d '{
  "credentials": {
    "password" : { "value": "Insert Password" }
  }
}' "https://${myOktaDomain}/api/v1/users/00ub0oNGTSWTBKOLGLNR"

 

This API call is already added to Postman. To add the user ID and the desired password, click Send.

Postman



Related References

Loading
Set a Custom Password for Okta Users