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
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.