• Restrict updating metadata fields based on user profile

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #53240  by mamad
 
Hi guys
I'm using Openkm 6.3 CE
I want to grant read only access for metadata groups to some users based on their profile but i cant find any option for that in profile settings. Actually every one who can see the metadata group tab, can update all metadata fields but i want some users can only read those properties not to write them.
Is this possible at all ?
Thanks in advance
 #53248  by jllort
 
In the professional edition we have this feature implemented because in the metadata definition is possible to set security restrictions - https://docs.openkm.com/kcenter/view/ok ... ement.html - but unfortunately is not present in the CE.

To simulate the same behaviour in CE you should create your own Automation Action and link with set metadata group in PRE stage and then evaluate if the user can or not modify the metadata, in case can not modify raise and exception, that will block the metadata changes. I share some links you may be interested to implement the feature:
* https://docs.openkm.com/kcenter/view/ok ... ction.html
* https://docs.openkm.com/kcenter/view/ok ... utils.html
* https://docs.openkm.com/kcenter/view/ok ... olesByUser
* https://github.com/openkm/document-mana ... .java#L445 ( here should check what is saved in the "env" variable to get from your automation action )

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.