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: Identifying User Types via DXL
Topic Summary:
Created On: 29-Feb-2008 09:11
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 Pekka Mäkinen, on Friday, February 29, 2008 12:00 PM

Answer:
Look at UserClass values in DXL Help. Some example code showing who are Database Managers or may otherwise manage the database:

User user = null
string uName = ""
UserClass userclass
bool MayManage = false
bool DatabaseManager = false
print "Database managers, or persons who can manage database \n"
for user in userList do
{
MayManage = user.mayManage
userclass = user.class
DatabaseManager = (stringOf(userclass) "" == "Database Manager")
if ((MayManage) || (DatabaseManager))
{
uName = user.name
print uName "\n"
}
}
 29-Feb-2008 09:11
User is offline View Users Profile Print this message


Alan Gooch

Posts: 107
Joined: 30-Aug-2005

I have a script which extract certain information from the userList, e.g. 'name', 'systemLoginName', 'email' etc.

What I can't find is anything to tell me the User Type.

I'm sure I can, but how?
Report this to a Moderator Report this to a Moderator
 29-Feb-2008 09:17
User is offline View Users Profile Print this message


Alan Gooch

Posts: 107
Joined: 30-Aug-2005

double-post

Edited: 29-Feb-2008 at 09:18 by Alan Gooch
Report this to a Moderator Report this to a Moderator
 29-Feb-2008 11:04
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Answer Answer
Look at UserClass values in DXL Help. Some example code showing who are Database Managers or may otherwise manage the database:

User user = null
string uName = ""
UserClass userclass
bool MayManage = false
bool DatabaseManager = false
print "Database managers, or persons who can manage database \n"
for user in userList do
{
MayManage = user.mayManage
userclass = user.class
DatabaseManager = (stringOf(userclass) "" == "Database Manager")
if ((MayManage) || (DatabaseManager))
{
uName = user.name
print uName "\n"
}
}

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 29-Feb-2008 11:59
User is offline View Users Profile Print this message


Alan Gooch

Posts: 107
Joined: 30-Aug-2005

Thanks, that's what I was after.
These things are only in the DXL Help if you know where to look :-)
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.