Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

JackrabbitAccessControlManager object not returning privileges

Avatar

Level 2

I am trying to fetch privileges for a group using JackrabbitAccessControlManager API. It works fine in local and other instances but does not result in one of the instances.

 

Below is the code snippet i am using,

JackrabbitAccessControlManager acm = (JackrabbitAccessControlManager) adminSession.getAccessControlManager();

Privilege[] privileges = acm.getPrivileges(path, principals);

 

I have tried checking if the path and principals results correctly, also at that instance if the respective principal have the permissions and it is all correct.

This is used in AEMaaCS.

 

Any help is much appreciated.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @anshul__ 
Could you please check the adminSession? 

 

code looks fine though, other sample code : https://github.com/Netcentric/accesscontroltool/blob/039f56af944a0814230b17105bea6e7b6fd51bf6/access... 



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @anshul__ 
Could you please check the adminSession? 

 

code looks fine though, other sample code : https://github.com/Netcentric/accesscontroltool/blob/039f56af944a0814230b17105bea6e7b6fd51bf6/access... 



Arun Patidar