• how to link role with 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.
 #20703  by edwsin
 
hi there,
is there a way to link a role with profile...?

My goal is to create 1 user to "prevent download, delete, copy, move" other users document but they can "upload, download, delete, copy, move" their own document.
And since 1 user can have more then 1 role, so i ask to you guys, is there a way to link a role with profile.

Best regards,
Edward
 #20724  by jllort
 
No this is not the idea. But you can doing something simply with a simply select ( users who have some role ) you can change their default profile to the profile you want.

Here are the sql which have some interest to you:
Code: Select all
SELECT PRF_ID FROM OKM_PROFILE where PRF_NAME='Default'
SELECT UR_USER FROM OKM_USER_ROLE where UR_ROLE='ROLE_USER';
SELECT * FROM OKM_USER_CONFIG;
And you could do something like:
Code: Select all
UPDATE OKM_USER_CONFIG SET UC_PROFILE=(SELECT PRF_ID FROM OKM_PROFILE where PRF_NAME='Default') WHERE UC_USER IN (SELECT UR_USER FROM OKM_USER_ROLE where UR_ROLE='ROLE_USER');

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.