Goal: Restrict user access by classification based on the role they are using.
The classification setting is set on a given user. I have a need for a given user to be able to set a transaction level class, but want to leverage the restrictions as described here:
https://system.na1.netsuite.com/app/...opic=EDIT_ROLE
under each role.
Example: User has 2 roles available. Each role should force transactions to have a given class. Using the Restricting Accounts for Roles recommendation and Employee Restrictions and Class Restrictions I can restrict a user's access to 1 class only as the class setting is on the USER. So, in my implementation, I created 2 roles. One role is setup as described and successfully restricts a user's behavior such that all trans have the correct class. The second role is setup by naming convention to be the 2nd class, but in reality the users can select either class. Thus in that situation, the user is able to set the wrong class on a given transaction.
Since the vast majority (99%) of my transactions are one class, I thought this would work as the users are defaulted to the right class and were told to only change their role when they had to do the other class. However, my users believe it is quicker for them to not have to make this change and prefer to work under the role allowing for both. Quite obviously they continue to make mistakes, which have large consequences and need to be cleaned up.
Looking for suggestions on how to accomplish this. My thought was to change the class on the user with a script at role change. I can't seem to figure out how to flag an event script based on that, and the doc doesn't seem to indicate this is changable by script. My other option was to change the user's Preference with role change. Again it would permit a user to change it (if they knew how), but thinking it might be just enough deterrent to get them to leave it. I was hoping not to have to create a script on every potential form to restrict by class as the Restricting Accounts for Roles above already does that work (except it's really by user not role unless I'm missing something). Appreciate any recommendations.
Thanks in advance.