Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Add user to group
Topic Summary:
Created On: 24-Mar-2008 13:51
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by David Pechacek, on Monday, March 24, 2008 2:16 PM

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);
 24-Mar-2008 13:51
User is offline View Users Profile Print this message


Jon Martin

Posts: 49
Joined: 22-Nov-2006

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??
Report this to a Moderator Report this to a Moderator
 24-Mar-2008 13:55
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 24-Mar-2008 14:05
User is offline View Users Profile Print this message


Jon Martin

Posts: 49
Joined: 22-Nov-2006

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)
Report this to a Moderator Report this to a Moderator
 24-Mar-2008 14:12
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Answer 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);

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 24-Mar-2008 14:15
User is offline View Users Profile Print this message


Jon Martin

Posts: 49
Joined: 22-Nov-2006

10x

IT WORK
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.