Hello All,
How can I get the current User role or a User type of a logged user?
Thanks
Hello All,
How can I get the current User role or a User type of a logged user?
Thanks
I ran into this issue also. I had requested the developers create a Cicode function to return this information, but it hasn't happened yet. Feel free to request it from Citect support to increase the priority of the enhancement request.
If you just have a single project with Citect users defined, you could use the device functions like DevOpen() to open users.dbf in your project and find the current user's role(s). If you have Windows/domain users then you can't do that. I wrote some Cicode that you can call from the Entry Command of each Role definition. It creates a list of all roles that have been applied to the currently-logged-in user, then allows you to check if the user has specific roles. See TN8210 for the code and instructions.