Delete Multiple Users by there login ID in AEM using CURL

淺唱寂寞╮ 提交于 2019-12-14 03:08:45

问题


I have the login id's of all the 500 users which need to be deleted from AEM 6.3 .

How can i do it by using curl command .


回答1:


Use applyTo request parameter to remove multiple items through a single request.

To delete multiple users -

curl -u admin:admin -F":operation=delete" -F":applyTo=/home/users/geometrixx/charles.s.johnson@trashymail.com" \
    -F":applyTo=/home/users/geometrixx/carlene.j.avery@mailinator.com" http://localhost:4502/home/users

Try this on your local instance first, you might want to execute this in the publish instances as well to keep all the instances in sync. You can also use wildcard \* to delete all items under parent node.



来源:https://stackoverflow.com/questions/52261941/delete-multiple-users-by-there-login-id-in-aem-using-curl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!