在两个AEM环境中的节点权限比较



我想编写一个jenkins python作业,以比较两个不同AEM环境中节点权限的差异。在Jenkins UI中,我应该能够配置要比较哪些环境以及要比较的路径。我需要输出的方式应具有环境-1和Environment-2,即正在比较的路径以及它们拥有的权限。例如,在开发环境中,对于路径/内容/大坝/测试,我们只有读取权限,对于在舞台环境中读取和写入权限的相同路径,则输出应为

                  **Environment-1**       **Environment-2**

content/dam/test 阅读&写

这里真正的问题是如何从两个AEM环境中检索节点的权限,以及如何比较和过滤在权限差异的节点路径?

看一下pageinfo servlet。示例致电:http://localhost:4502/libs/wcm/core/content/pageinfo.json?path =/pontent/we-retail/us/us/en

您将获得这样的权限节点:

  "permissions": {
    "modify": true,
    "replicate": true,
    "read": true,
    "create": true,
    "delete": true,
    "acl_read": true,
    "acl_edit": true
  },

请参阅:https://helpx.adobe.com/experience-manager/6-4/sites/developing/ususe/pageinfo.html有关更多信息。

最新更新