![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Add user to group Topic Summary: Created On: 24-Mar-2008 13:51 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Is that the exact code? If you're getting an error on the last line its because first you have to get a handle on the "SE" group. Group g = find("SE"); addMember(g, usr); | |
![]() |
|
Hi all
How do i add a user into a Group using DXL? I have this: usr = find(Uname) usr.password = NewPass usr.email = "TheMail" And I'm trying to add "usr.group = "SE" but I'm getting an error. Any idea?? |
|
![]() |
|
![]() |
|
addMember(Group g, User u)
There is no group property for a user. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 24-Mar-2008 at 13:57 by David Pechacek |
|
![]() |
|
![]() |
|
Thanks David
I'm trying to use it in the following script and I'm getting an error: User usr Uname = "8" if (addUser(Uname, "") == null) { print "Added user '"Uname"'.\n" string NewPass = "111111" usr = find(Uname) usr.password = NewPass usr.email = "TheMail" saveUserRecord(usr) } else print "Failed to add user '"Uname"'.\n" saveDirectory() addMember(Group "SE" ,User usr) |
|
![]() |
|
![]() |
|
Is that the exact code? If you're getting an error on the last line its because first you have to get a handle on the "SE" group.
Group g = find("SE"); addMember(g, usr); ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
10x
IT WORK |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Add user to group
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.