![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Identifying User Types via DXL Topic Summary: Created On: 29-Feb-2008 09:11 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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" } } | |
![]() |
|
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? |
|
![]() |
|
![]() |
|
double-post
Edited: 29-Feb-2008 at 09:18 by Alan Gooch |
|
![]() |
|
![]() |
|
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/ |
|
![]() |
|
![]() |
|
Thanks, that's what I was after.
These things are only in the DXL Help if you know where to look :-) |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Identifying User Types via DXL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.