AEM Page Authentication CUG | Community
Skip to main content
New Participant
April 10, 2023
Solved

AEM Page Authentication CUG

  • April 10, 2023
  • 1 reply
  • 665 views

Hi All,

 

We are working on Enable Authentication in AEM Content Page. We have associated a CUG in permission tabs in page properties and given some additional permissions to the group using add permissions. We have a use case to access list of CUG associated with the page and the permissions which have been associated with the cug at the page level programmatically.

 

 

Step 1 - We add a CUG by editing CUG option.

Step 2 - We add permissions to this CUG by Add Permissions functionality.

 

We are trying to get both these details programmatically. Can anyone help on this as how can this be achieved and where the permissions to the CUG is stored in the repository ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by somen-sarkar

Hi,

The CUG relationship is stored under a node named "rep:cugPolicy" for the particular page for which you have applied the permission. You can refer to the following pages for details about programatic access :-  

https://joao.ws/reading-and-setting-closed-user-groups-cugs-programatically-in-aem/

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/closed-user-groups.html?lang=en

https://jackrabbit.apache.org/oak/docs/security/authorization/cug.html#Representation_in_the_Repository

 

Thanks,

Somen

1 reply

somen-sarkar
somen-sarkarAccepted solution
New Participant
April 10, 2023

Hi,

The CUG relationship is stored under a node named "rep:cugPolicy" for the particular page for which you have applied the permission. You can refer to the following pages for details about programatic access :-  

https://joao.ws/reading-and-setting-closed-user-groups-cugs-programatically-in-aem/

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/closed-user-groups.html?lang=en

https://jackrabbit.apache.org/oak/docs/security/authorization/cug.html#Representation_in_the_Repository

 

Thanks,

Somen