NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically accessing the individual privileges of a user

Via the TestStand API, is there a way to programmatically access the privilege names of assigned to a user? I am trying to create a user manager to list and edit these flags. Ideally, it would be nice to use the version incorporated into the sequence editor; however it cannot be deployed on all the stations.

Thanks for your time and assistance,
Mark
0 Kudos
Message 1 of 4
(3,530 Views)
Hi Mark,

You will first need to get the list of privillages by accessing the User.Privillages property. This will return a property object reference that will contain all of the privillages. You can then scroll through all of the properties and use User.HasPrivillage to verify if a user has the privillage enabled.

Hope this helps. Let me know if you need anymore info.

Bob
0 Kudos
Message 2 of 4
(3,530 Views)
Hi Mark,

Have you looked at the CreateDeleteUser.seq in the TestStand examples folder.
This uses the API calls to Create or Delete users and therefore maybe a useful starting point.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 4
(3,530 Views)
Out of curiousity...what API calls would I need to perform to display the property dialog for changing the actual privilege?

Thanks in advance,
Mark
0 Kudos
Message 4 of 4
(3,530 Views)