Using command line to change user password

Hi @Santosh008

Once you have the feature mentioned previously, navigate to your OIDC app in your administrative panel and you should have a new tab “Okta API Scopes”. Please enable “okta.users.manage”.

Once this is done, you will need to request new access tokens with an endpoint like the following

https://yourOktaOrg.okta.com/oauth2/v1/authorize?response_type=code&client_id=CLIENT_ID_HERE&redirect_uri=https://site.com/callback&state=abc&scope=openid%20okta.users.manage&nonce=abc

You will receive an access token that has the scope “okta.users.manage”. With this access token, you can call the change password API, for example

curl -X PUT \
  https://yourOktaOrg.okta.com/api/v1/users/00ueay8jcd5kkMWs20h7 \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer ACCESS_TOKEN_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
  "credentials": {
    "password" : { "value": "new_user_password_here" }
  }
}'

You can find out more details about OAuth for Okta feature here.