04-19-2016 09:32 PM
Dears,
Anyone can tell me how can I get current user information(name, operator or developer or administrator...)? Whith what lookup string & vi?
--- At custom UI program
--- right after login
Thanks
WD
04-20-2016 10:01 AM
I'm not a LabVIEW guy, so I'm not going to be able to point you at the proper vi, but the string you want is located at "StationGlobals.TS.CurrentUser" to get the Current User Container that has all of the information about who is currently logged in. If you've accessed TestStand properties using LabVIEW before, then the vi you used to do that will work for this as well.
Hope this helps.
-Jack
04-20-2016 10:47 AM - edited 04-20-2016 10:48 AM
To get the user group, you have to loop through all of the groups and see if your user name is in that group.
This VI should help:
http://forums.ni.com/ni/attachments/ni/330/35926/1/current%20user%20group.vi
I would also suggest looking at this thread:
http://forums.ni.com/t5/NI-TestStand/get-group-name-of-currently-logged-in-user/td-p/595452