LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically use Windows 2000 group permissions

I would like to allow functions within a 6i vi based on a user's inclusion in a group on the domain. I am able to determine the user's identity but have not been able to determine their access permissions. I've tried to figure out windows API calls but no luck. Eg: If in the technician group they get to do more than if they're in the operator group as defined by the network administrator. Any help would be greatly appreciated.
0 Kudos
Message 1 of 4
(2,910 Views)
Hello Dale,

Thank you for contacting National Instruments.

If you are already able to programmatically obtain the current user's login name for Windows, one solution is to compare the user name to a table of user names in LabVIEW when the VI is initially loaded. In this way, you can enable and disable controls using property nodes depending on the Windows login.

I have included an example VI that illustrates the basic idea.

I hope this helps! Let me know if you have further questions.

Matthew C
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,910 Views)
Thank you for your reply Matthew. I was unable to open the Verify Information VI you included as I only have version 6i. Although your proposed solution seems sound, I was hoping for something a little more elegant. Since I'm working in a medical environment, I'd like to avoid the revalidation requirement posed by a new table everytime I add a new employee. Using the windows groups seemed an ideal solution that would also be beneficial in a CFR 21 Part 11 environment.
0 Kudos
Message 3 of 4
(2,910 Views)
Dale,

I am not sure if what you are looking for can be done, but I would
first suggest searching the MSDN library for a function that will
return a user's permissions in Windows. The following link will take
you to the MSDN library:

http://msdn.microsoft.com/library/

You may be interested in the GetPermissions function.

Once you have found a function that returns the information you
desire, you can use the Call Library Function Node located on the
Functions >> Advanced palette to call this function in LabVIEW. You
can then use the permission information to determine what access the
user will have within the VI.

I hope this helps!

Matthew C
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,910 Views)