• Restrict users and groups list

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #29498  by sagar
 
Hi,

We have configured OpenKM with active directory and when a user wants to modify the access rights for a document he will select from the list of users and groups available on the AD.
My question is: can we restrict for a certain user (or users) to see only a subset of the AD users and groups; but other users will see the full list?

Thanks in advance for your help.

Regards,
Sagar
 #29525  by jllort
 
list of users and roles is based on ad search. You can do a search to shown only few users and roles. For example take a look how filtering users based on roles here http://wiki.openkm.com/index.php/Ldap-example3 you can do something similar with roles ( filter based on roles what are membersof some role )
 #29535  by sagar
 
This will filter the list for all users. What we need is to filter based on the logged in user, for example user X can see only users (Y and Z); but user A can see all users (A,B,C,X,Y,Z).


Regards,
Sagar
 #29554  by jllort
 
Here are two possibilities, one could be make some modification in our LdapPrincipalAdapter ( when you get user lists, apply there some filtering ), and other is modify the code of the servlet where is getting roles and users. First has the advantage to be available for all openkm entry points ( frontend, ws etc... ) meanwhile the second will only take effect for UI.

Here you got developer guide http://wiki.openkm.com/index.php/Developer_Guide
Here the class https://sourceforge.net/p/openkm/code/H ... apter.java

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.