Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

CURL for creating a AEM/CQ user under the “/home/users/test/” path

Avatar

Level 5

what is the parameter that need to be used for creating an AEM user under the path "/home/users/test/"? Also where can i get the curl documentation that can be used with AEM/CQ

currently i am using the below crul command for creating a user. but the user still creates under "/home/users/randomnumber/encryptednode/"

curl -u admin:admin -FcreateUser= -FauthorizableId=testuser -Frep:password=testuser -FPath="/home/users/test/" http://localhost:4502/libs/granite/security/post/authorizables

 

Thanks,

Kk

3 Replies

Avatar

Level 9

Please refer below link and it has some references to it  under 'User Management Commands' section.

https://hashimkhan.in/2015/05/27/aem-with-curl/

Thanks,

Kishore

Avatar

Level 7

Please try below command:-

curl -u admin:admin -FcreateUser= -FauthorizableId=testuser -Frep:password=testuser -FintermediatePath="/home/users/test/" http://localhost:4502/libs/granite/security/post/authorizables

For more Curl commands visit http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/

Let me know if you still face the issue

Avatar

Level 5

AnkurAhlawat wrote...

Please try below command:-

curl -u admin:admin -FcreateUser= -FauthorizableId=testuser -Frep:password=testuser -FintermediatePath="/home/users/test/" http://localhost:4502/libs/granite/security/post/authorizables

For more Curl commands visit http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/

Let me know if you still face the issue

 

 

    
Thank you it works, my bad earlier i have tried with " -FIntermediatePath="‌​test123" " which went wrong and created user directly under /home/users/ path.

 

Regards,

Kk

     
Thank you it works, my bad earlier i have tried with " -FIntermediatePath="‌​test123" " which went wrong and created user directly under /home/users/ path.