Unexplained rep:policy nodes appearing | Community
Skip to main content
Level 2
Sep 14, 2016 1:05 PM UTC

Unexplained rep:policy nodes appearing

Good day,

I'm experiencing a "problem" with the AEM publisher, that I can't figure out. Every time the AEM 6.0 publisher is restarted, rep:policy nodes are created for all parsys nodes in the /content/* directory with properties "cq:cugEnabled" set to true and "cq:cugPrincipals" containing a string array of cug roles. The created rep:policy nodes grant administrators the right to everything and deny everyone else all rights.

Can anyone tell me why these rep:policy nodes appear every time I restart my AEM 6.0 publisher instance?

Thanks!

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

3 replies

Level 3
May 9, 2019 5:48 PM UTC

Resolved same issue and created page for reference.

https://aakul.blogspot.com/2019/05/aem-cug-permissions-gets-reset-post.html

In short permission can be deleted if CUG is disabled in AEM<6.3

From AEM 6.3, it will use separate authorization module called oak-authorization-cug, then it will never impact user permissions.

Translate
joerghoh
Employee
Sep 14, 2016 7:59 PM UTC

Hi,

obviously you have CUG properties in your publish instance, which is caused by the fact, that authors decided to use these functionality (check your page properties).

So whenever a publish is started it checks if there are CUG defined but the ACLs for it are missing. To get rid of this behaviour I would remove the CUG definitions on author; on publish side you can set the OSGI property "cug.enabled" to false (service "Day CQ Closed User Group (CUG) Support").

Translate
Employee
Sep 23, 2016 10:39 PM UTC

The CUG is designed to work only on the publish environments and there are no plans to enable this on Author as it is a publishing feature. 

Translate