Skip to Content

getAcl(resource) & getInheritedAcl(resource) both are returning NULL

Hello Everyone,

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

I am unable to get the 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
    Posted on Jul 28, 2014 at 08:32 AM

    Closed the Issue.

    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.