Skip to Content

IResourceACLManager.getInheritedAcl(resource) is returning NULL

Hello Everyone,

Using below Web Dynpro Java code I am capturing all KM Resource groups & Permissions. But if the KM resource having only one group (Everyone group) I am getting null value. I have tried to use getACL & getInheritedAcl methods but still I am getting null values.

I am unable to get the groups & permission when KM Resource having only Everyone group.

Please find the below webdynpro Java code.


serviceUser = (IUser)WPUMFactory.getServiceUserFactory().getServiceUser(Admin_Service_User);
IResourceContext resourceContext = new ResourceContext(serviceUser);

IResourceFactory resourseFactory = ResourceFactory.getInstance();

//RID rid = RID.getRID("/documents"); //documents folder having only Everyone group

RID rid = RID.getRID("/documents/Content"); // Content fodler having only Everyone group

IResource resource = resourseFactory.getResource(rid, resourceContext);

ISecurityManager secMgr = resource.getRepositoryManager().getSecurityManager(resource);

if(null!= secMgr && (secMgr instanceof IAclSecurityManager)) {
IResourceAclEntryListIterator rAclEntryList =null;
IResourceAclEntry rAclEntry = null;
IAclSecurityManager aclSecMgr = null;
IResourceAclManager rAclMgr = null;
IResourceAcl resAcl = null;

aclSecMgr = (IAclSecurityManager)secMgr;
rAclMgr = aclSecMgr.getAclManager();
resAcl = rAclMgr.getAcl(resource);

wdComponentAPI.getMessageManager().reportSuccess("Get ACL:"+resAcl); // getting null value
wdComponentAPI.getMessageManager().reportSuccess("Get Inherited ACL:"+rAclMgr.getInheritedAcl(resource)); // getting null value

if (null!= resAcl) {
for(rAclEntryList = resAcl.getEntries().iterator(); rAclEntryList.hasNext();) {

rAclEntry =;

IPrivateKM_ResourceView.IKmRootFolderPermissionsElement kmRootPermissions = wdContext.createKmRootFolderPermissionsElement();



Any immediate response is very helpful and will be awarded with high points.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2013 at 11:21 AM

    Rami, try to do it in this manner:


    //try to get explicit permissions first
    IResourceAcl resourceAcl = resourceAclManager.getAcl(resource);
    if(resourceAcl == null){ resourceAcl = resourceAclManager.getInheritedAcl(resource); } //fallback for inherited
    if(resourceAcl != null){

    IResourceAclEntryList perm = resourceAcl.getEntries();

    IResourceAclEntryListIterator it = perm.iterator();


    IResourceAclEntry e =;

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.