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.