Where the Permission data gets stored in CRXDE. | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
HeenaMadan
HeenaMadanAccepted solution
New Participant
Jul 27, 2022 8:37 AM UTC

Permission data is stored in rep:policy nodes. For eg: you have given jcr read access of /content/<your-site> to "read-service" user and write access to "write-service". Then go to /content/<your-site>

click rep:policy, you will find allow nodes, check for rep:privileges

 

 

Thanks,

Heena

3 replies

HeenaMadan
HeenaMadanAccepted solution
New Participant
Jul 27, 2022 8:37 AM UTC

Permission data is stored in rep:policy nodes. For eg: you have given jcr read access of /content/<your-site> to "read-service" user and write access to "write-service". Then go to /content/<your-site>

click rep:policy, you will find allow nodes, check for rep:privileges

 

 

Thanks,

Heena

Translate
Mohit_KBansal
Employee
Jul 27, 2022 4:41 AM UTC

Users and groups are stored under /home node. Please see [1] for details.

 

[1] https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/security.html?lang=en

Translate
Sachin_Arora_
New Participant
Jul 27, 2022 4:40 AM UTC

Permission data is stored in rep:policy nodes. So for example you give permission to a node /content/a for user test then a rep:policy node will be created under /content/a having a child node allow/deny containing user name as rep:principalName, rep:privileges as type of permission.

For Example :

 

Below are the details of API that you can refer : 

 

Sample Code :

UserManager userMgr = ((org.apache.jackrabbit.api.JackrabbitSession) session).getUserManager();
AccessControlManager accessControlManager = session.getAccessControlManager();
Authorizable authorizable  = userMgr.getAuthorizable(groupName);
AccessControlPolicyIterator policyIterator = accessControlManager.getApplicablePolicies(nodePath);
Translate