Is There Any Method to Add Windows User in SystemLink Security Programmatically?

Updated Sep 18, 2023

Reported In

Software

  • SystemLink

Issue Details

  • Is there any way to add user information from login providers such as Windows, LDAP, OIDC, etc. to the SystemLink Security without logging in to the SystemLink UI?
  • I want to create a login account for SystemLink not tied to any login provider.

Solution

It is necessary to first og into the SystemLink UI in order for that user to appear as a drop down choice in the SystemLink "Access Control" pages. When a user first manually logs into SystemLink Server (using Windows, LDAP, or OIDC.), they will initially have no SystemLink permissions and will see a "white" screen with no features/options.  However, that first successfully authenticated login causes a user profile to be created for that user in SystemLink.  After once logging in manually, the SystemLink Server administrator can then manually add permissions to that user profile in the "Access Control" pages of SystemLink.

If you know all the user information ahead of time, you can alternatively call the "POST niuser/v1/users" route to create the new user profile programmatically, providing the desired SystemLink permissions as a list of "policies".  You can find further information on this route in the "User Service" section of SystemLink's Swagger documentation page.

The only way to log into SystemLink without using provider credentials is to log in with the default "admin" account.  You can enable/disable the "admin" account and assign its password in the "NI Web Server Configuration" dialog.