Getting 401 erro while using Rest API /admin/v1/UserPasswordChanger
Summary:
Curl Syntax:-
curl --location --request PUT '<IDCS_DOMAIN_URL>/admin/v1/UserPasswordChanger/<IDCS_DOMAIN_USER_ID>' --header 'Authorization: Bearer <ACCESS_TOKEN>' --header 'Content-Type: application/json' --data '{"password": "<PASSWORD>","schemas": ["urn:ietf:params:scim:schemas:oracle:idcs:UserPasswordChanger"]}'
ERROR Message: -
{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error","urn:ietf:params:scim:api:oracle:idcs:extension:messages:Error"],"detail":"You are not allowed to perform any actions on this page.","status":"401","urn:ietf:params:scim:api:oracle:idcs:extension:messages:Error":{"messageId":"error.common.common.accessDenied"}}
Question: -
We are looking to change the password of a user in IDCS manually (without sending email) but above Endpoint is giving 401 error. Can you please help/guide me what is missing here?