LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically adding users with DSC

Hi,

I'm pretty new to DSC, and might have missed something obvious. However:

Is there a way to programatically add new users? I want to build an application where someone logged in on a high level is able to add new users to the system. I haven't found a function for this.

My idea to get around the problem is to let the system take care of user names, and map these names to predefined user names in the DSC. This willl however put limits to the number of users of different levels, as well as it would mean having a number of not used user names in the DSC madule. Which I would like to avoid.

Any answers / better ideas?

Thanks

//Peeker


CLA
https://www.prevas.se/expertis/test--regulatoriska-krav.html
0 Kudos
Message 1 of 2
(3,010 Views)
Unfortunately DSC do not have a way to programmatically create user. DSC only provide a way for you to query the users listed under the user account manager.

Using your idea then you will fall to the limitation of having fix number of users available in the map, but it should work.

My suggestion for you is to actually create a VI to launch the user account manager. You would put security check inside the VI by checking if the currently login user to DSC have privilege to launch the user account manager. If it does then you launch the user account manager. Note the user account manager allow you to add new user and modify old user, but remember to put people who can add user as administrator group so they have privilige to add user account.
0 Kudos
Message 2 of 2
(3,010 Views)