Discussion:
programatically adding users with DSC
(too old to reply)
M_Peeker
2004-10-18 12:39:25 UTC
Permalink
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
otoro
2004-10-23 20:56:19 UTC
Permalink
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.

Loading...