使用CURL在AEM中通过登录ID删除多个用户 [英] Delete Multiple Users by there login ID in AEM using CURL

查看:98
本文介绍了使用CURL在AEM中通过登录ID删除多个用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有需要从AEM 6.3中删除的所有500个用户的登录ID。

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

我如何使用curl命令来做到这一点。

How can i do it by using curl command .

推荐答案

使用 applyTo 请求参数通过单个请求删除多个项目。

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

要删除多个用户-

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.

这篇关于使用CURL在AEM中通过登录ID删除多个用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆