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: Extracting all users from a specific group
Topic Summary:
Created On: 3-Apr-2003 20:45
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 Mark Phillips, on Friday, April 4, 2003 10:41 PM

Answer:
Pete,

The attached code will extract all members from all groups in the database. If you want to specify the group, then use the find() command for groups instead of looping over all groups.

Mark
 3-Apr-2003 20:45
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

Hello,

does anyone have a script handy to extract all users from a specific group?

Thanks.

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 3-Apr-2003 21:54
User is offline View Users Profile Print this message


Mark Phillips

Posts: 40
Joined: 17-Dec-2002

Answer Answer
Pete,

The attached code will extract all members from all groups in the database. If you want to specify the group, then use the find() command for groups instead of looping over all groups.

Mark

-------------------------
Mark Phillips
mark.phillips@swri.org
Report this to a Moderator Report this to a Moderator
 9-Apr-2003 18:11
User is offline View Users Profile Print this message


Pelp .

Posts: 1
Joined: 9-Apr-2003

I'm a newbie to DOORS and starting to learn DXL (have little programming experience). I have tried the code posted by Mark but I can't get the find function to work to extract all users from the group "BTTS PRO TOM". Can someone tell me what I'm doing wrong?




// Script to extract all user names from all groups in the database
/*
Contributors:
MLP - Mark Phillips, Southwest Research Institute

Revision History:
2003/04/03 - MLP - Initial Release
*/

User usr
Group group

//Loop over all groups
for group in groupList do {

string gName = group.name
print gName " Members:\n"

//Loop over all users in the current group
for usr in group(string ""BTTS PRO TOM")
do {

string uName = usr.name
print "\t" uName "\n"

}

}
Report this to a Moderator Report this to a Moderator
 9-Apr-2003 19:40
User is offline View Users Profile Print this message


Sara Martin

Posts: 4
Joined: 4-Nov-2002

Pelp - try
Group group
User usr
string admin = "BTTS PRO TOM"
group = find admin
if(existsGroup admin)
{
for usr in group do
{
string uName = usr.name
print "\t" uName "\n"
}
}

Sara
Report this to a Moderator Report this to a Moderator
 10-Apr-2003 13:59
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Here's a short script I wrote to extract information from the user database. You can choose to export a user list or a group list. The export format is either a comma- or tab-separated text file. All of your options are self-explanatory once you load and run the program.

You must have admin rights in the database for the user-list export to work.

-Dennis
Report this to a Moderator Report this to a Moderator
 10-Apr-2003 19:46
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Fixed a bug during Group List export. Use this new script.

-Dennis
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.