How Can I Implement User Access Control in LabVIEW

Updated Nov 28, 2023

Reported In

Software

  • LabVIEW

Issue Details

I would like to like my LabVIEW application to prompt a user to enter their username and password to give different permission levels to different users. How could I do this?

Solution

There are many ways to implement a solution, but the following are general options that can be considered for a design. 
  1. If your company has an Active Directory, then the user can be authenticated with the Lightweight Directory Access Protocol.
  2. The Domain Account Manager is a NI utility that is accessible through Tools>>Security in LabVIEW. The user database can be local to a computer or accessed remotely. The utility allows administrators to assign groups such as administrators, guests, and operators. It is important to note that users cannot be added programmatically. 
  3. A custom solution can also be developed using a local file or a remote database to store user credentials. The login screen and logic can be developed from scratch, and records for usernames, passwords, and permissions will need to be maintained manually.