NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Create Custom User Privileges

Solved!
Go to solution

This document (https://www.ni.com/docs/en-US/bundle/teststand/page/defining-custom-privileges.html) seems to say that custom privileges can only be created programmatically not in the User Manager? Am I missing something? I expected creating custom privileges would be like creating a new group. 

0 Kudos
Message 1 of 2
(724 Views)
Solution
Accepted by topic author al_g

The TestStand User Manual page you referenced states that in order to have a new custom privilege, you need to update the Type in the Type manager:  "Add Boolean properties to the NI_UserCustomPrivileges standard data type in the User Manager file in the Types window to define new privileges in the category. When you add new properties to the data type, increment the version of the type..."  Please note that if you do update the type and bump the version that you know how to properly use the new type where you need to.  Search NI for articles on proper custom Type management.

 

So go to View > Types; select to view All Types.  Then locate NI_UserCustomPrivileges in the Standard Data Types section.  See image.  From here you can add the custom privileges.  Then the User Manual states that you must handle custom privileges in your user interface code as the standard user interface controls don't know anything about your custom privileges.

 

Types.PNG

Message 2 of 2
(715 Views)