NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

API to add a user to a group

By calling Engine.NewUser we can create a new user:
Set user = Eninge.NewUser(userProfile)
But the new user is not added as a member of any user groups. What are the APIs to add a user to a user group?
 
Thanks for the help!

Message Edited by Support on 03-07-2007 12:29 PM

0 Kudos
Message 1 of 7
(3,611 Views)
Hi maplebridge,

You can use Engine.UsersFile, UsersFile.UserGroupList and User.Members to get access to the group list and make changes to who is a member of the group.
Test Engineer - CTA
0 Kudos
Message 2 of 7
(3,595 Views)

Thanks, Jon! I tried it out, and it worked. I have further questions about Teststand user management:

1) I create a new user in sequence editor, say op. User op has no privileges when created. But if I log on as op, I still can acess Configur menu which I think I shouldn't. Is this a bug?

2) Then I log on as administrator and add user op to two groups: Administrator and Technician, and then log on as op. Now op looks like administrator. What's the rule of user privileges overriding if a user is in a group or in more than one group?

Message Edited by Support on 03-07-2007 02:50 PM

0 Kudos
Message 3 of 7
(3,584 Views)
maplebridge,

All support regarding TestStand Beta Software should be sent to the Beta Coordinator.

Allen P.
NI
0 Kudos
Message 4 of 7
(3,579 Views)
Thanks! How to contact Beta Coordinator?
0 Kudos
Message 5 of 7
(3,574 Views)
Please log into the Beta Site to submit support requests or bug reports for the Beta Program.

Allen P.
NI
0 Kudos
Message 6 of 7
(3,567 Views)

Hi,

go to www.ni.com/beta and select TestStand

Regards

 

Regards
Ray Farmer
0 Kudos
Message 7 of 7
(3,550 Views)