updating rep:policy via yaml in AEM 6.5 | Community
Skip to main content
June 20, 2024
Question

updating rep:policy via yaml in AEM 6.5

  • June 20, 2024
  • 1 reply
  • 684 views

I want to update  the permission related to experience fragment  using yaml in AEM 6.5 . I tried like below

- path: /content/experience-fragments
permission: allow
privileges: ${privRead}
repGlob: ""    but it is not updating the existing permissions

I wnat to give read permission only to this path /content/experience-fragments not the child paths .  please help me in resolving this

 

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

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 20, 2024

Hi,

Why are you using a YAML file? Can you provide more context on what you are trying to do? I think you could use RepoInit for these tasks, Please check these: 

https://www.nextrow.com/blog/adobe-experience-manager/getting-started-with-apache-sling-repo-init 

https://sling.apache.org/documentation/bundles/repository-initialization.html

https://exadel.com/news/sling-repoinit-a-handy-tool-to-manage-content-and-users-in-aem/ 

 

Hope this helps

Esteban Bustamante
BipsaAuthor
June 21, 2024

Hi we are handing permission through "Netcentric/accesscontroltool" that's why I am using .yaml file and for "/content/experience-fragments" path we have few existing permission (rep:policy) so by default permission is applied for all the child nodes for eg: "/content/experience-fragments/testexperiencefragment" . As per my requirement I want read permission only for /content/experience node. I hope its clear .