Hi All. I am using a Button running a C# Script Event doing a Specific Task.
The Button/Script Should only be controlled by a Specific Group of users.
Currently I am using the following command to determine if the user is in the group to execute the code. If the user is no part of the group the code exits.
sCurrentGroup = VIZNET.UI.Runtime.ObjectManager.GetInstance().CurrentUserGroup;
My problem is that users can belong to more than one group ( i.e all users are part of the users group) The above code only returns one group name. So it could be that the above code does not return the required group-name that I use to determine if the user has the rights to execute the rest of the code.
Is there an easier way to block button events( scripting) from executing according to the logged in user?