• Privileges values in RevokeRole Automation

  • 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.
 #29569  by tiopourtu
 
Dear all,

I've implemented OpenKM Community with below taxonomy design:
1. From root down to Level 5 is a organization structure taxonomy concept.
2. The next level (Level 6) is a taxonomy concept definition is handled by each organization manager.
3. Role: ALL_USERS are granted Read Access to all node from root down to Level 5 so all user can read the structure.

The problem is when a manager create a folder /document under his organization, by default the security will inherit from the parent which is ALL_USERS have read access. So I manage to run Automation which RevokeRole ALL_USERS with Privileges values = 15. After that than the manager can grant the permissions to another roles or users as he intent to.
I don't know if this is the best practice by giving all manager access to security setting, so they can manage their own document sharing policy. But it works for me.

I got the 15 integer value from database, the question is do we have a list of possible value so we can RevokeRole or RevokeUser with specific right, for example: only revoke the security, revoke write and delete, or even revoke all but read.

Thanks in advance
 #29584  by jllort
 
In Permission.java class you got static permission values, I suggest use it than direct numeric values. http://doxygen.openkm.com/openkm/d8/d40 ... ssion.html

Some consideration:
1- if revoke Permission.READ then you get user without access.
2- For example you can revoke Permission.WRITE, that means only will be removed this grants, not all. Also you can set recursive to true what means will be propagated across all subfolder.

Finally we do not like much use ROLE_USER always we suggest remove it from repository, because by mistake you can share information to everyone. Should be better use a new role called ROLE_GENERAL and use for the same purpose. Take in mind ROLE_USER is a roles for pass the login screen and the first action of the administrator should be remove from okm:root, okm:templates and okm:categories ( this is the idea ) and replace by others to get read access to users.

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.