Changing AEM password via curl | Community
Skip to main content
Adobe Employee
April 9, 2019

Changing AEM password via curl

  • April 9, 2019
  • 2 replies
  • 5269 views

Hi All,

I am facing an issue in changing the password for AEM instance from 6.4.2 and above using the curl command , The password is not getting updated.

curl -s -u admin:admin -X GET “http://localhost:4502/bin/querybuilder.json?path=/home/users&1_property=rep:authorizableId&1_property.value=admin&p.limit=-1” > user.json

USER_PATH=`ruby -rjson -e 'j = JSON.parse(File.read("user.json")); puts j["hits"][0]["path"]'`

curl -s -u admin:admin -Fplain=admin1 -Fverify=admin1  -Fold=admin -FPath=$USER_PATH http://localhost:4502/crx/explorer/ui/setpassword.jsp

This command works fine for AEM 6.4 , but not for 6.4.2 and above. Anyone faced this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

smacdonald2008
Level 10
May 1, 2019

Are you seeing any messages in the log file. I have never attempted to change password via CURL.

siddhartha252
Level 2
September 11, 2019

Hi amritvprakash,

Please try below command which worked for me:

curl -u admin:admin -Fplain=newpassword -Fverify=newpassword -Fold=admin http://hostname:portnum/crx/explorer/ui/setpassword.jsp

Thanks

Sid

Level 2
September 24, 2024

Hi Siddhartha,
Can you please share the curl command to set password for replication-receiver system user in AEM 6.5.19 Author