10-27-2023 11:16 AM
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.
Solved! Go to Solution.
10-27-2023 12:10 PM
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.