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: Project Access Properties
Topic Summary: Project Object Properties in Relation to Access
Created On: 23-May-2006 20:08
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.
 23-May-2006 20:08
User is offline View Users Profile Print this message


Steve Shufelt

Posts: 8
Joined: 5-Apr-2006

I am trying to cycle through each project in a database and look at the groups that have access to each project. If any of the groups contain "Admin" in the name, I want the members printed to a file.

Here is my progress thus far:


I have been able to cycle through each project in a database and print project name and description to a file:

//Steve Shufelt 05/22/06
//DOORS 7.1
//This DxL prints the name and description of each project in the database.
Project p
Stream file = write("c:/temp/DOORSproject.txt")
for p in database do {
         file << name p ";" description p "\n"
}

Using a RegExp, I've also been able to list the member in project Admin groups:

//Steve Shufelt 05/22/06
//DOORS 7.1
//This DxL searches for groups containing "Admin" the prints the users in these groups to a file.

Group g
User u
string uEmail,uName,gName
Stream file = write("c:/temp/doorsadmingroup.txt")

for g in groupList do {
 
 gName = g.name
 Regexp rAdmin = regexp "(Admin)+"
 if (rAdmin gName) {     for u in g do {
     uName=u.name
     uEmail=u.email
  
     file <<gName ";" uName ";" uEmail "\n"
           }
        }
 }



-------------------------
Steven Shufelt
DOORS Admin
Harris Corp.
SShufelt@Harris.com
Report this to a Moderator Report this to a Moderator
 24-May-2006 13:53
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

The following little script prints the access rights for every project in the database.
You should be able to plug your group name check into this and get the results you are after.

-------------------------
Tony Goodman
http://www.smartdxl.com
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.