cancel
Showing results for 
Search instead for 
Did you mean: 

Keyword DataSet

Peter_Carroll
Champ in-the-making
Champ in-the-making

Hello

I created an ExternalKeywordDataSetScript that gets all users. I have configured a keyword to use datasets and set that to external and attached the script to it. As a user with Manager rights it works fine. But any other user group it throws an permission error. I went into studio and set all the usergroups to have view permissions and that did not help. When I go into the Unity Form Designer and test drive the unity form and impersonate any user group it works but just not the live version. I know I am missing something simple but I can't see it. Any help would be appreciated.


Thanks


Here is the requested data

Sorry about that here is the Diagnostic Console. The select list just does not open so no real error displayed on the UI side.

I understand that it is saying that the user does not have rights but I don't know which rights it is wanting. The user is a member of a user group that has rights to the document type.

5 REPLIES 5

Peter

You won't be able to get the ExternalKeywordDataSetScript to run as a different user as it runs in the current user's session. However, you can get the script to create a new OnBase session that has rights to all users, and use that session to get the data you want. Bear in mind that this will consume another client licence, so if you were to adopt this approach, you would need to be careful to manage the Session ID.

By "data source", I mean something like a custom database table that contains the values that you want returned in your keyword data set. So if you didn't want to create a new session or hit the hsi.useraccount table within your ExternalKeywordDataSetScript script, you could have your ExternalKeywordDataSetScript script retrieve data from a custom database table that is populated by a different Unity Script that is executed periodically (e.g. via a workflow timer or directly via the Unity Scheduler) by a user that has access to all your users e.g. MANAGER.

The easiest approach would be to simply hit the hsi.useraccount table from your ExternalKeywordDataSetScript script.