![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to Find Groups in object/attribute Access Records Topic Summary: Created On: 13-Sep-2005 22:08 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have no problem writing a script to output individual users in an object/attribute access record, but
I cannot find a way to print out the group names in the access record. According to the DXL manual, this the sample code they give in the DOORS 7.1: for ar in values ad do { string sUser = (username ar) "" print sUser "\n" } How does one do this for groups? ![]() |
|
![]() |
|
![]() |
|
The username property contains user AND group names, so your code will return group names as well as user names.
You can then use existsUser() and existsGroup() to determine whether you have the name of a user or a group. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
I have the same situation too, but I cannot make DXL to print the name of users/groups which have the access.
To be more specific, I want to restrict the rights for some user groups to a specified attribute. In order to do that I will find it more consistent if I would be able to get (into a skipList maybe) the name of the groups which have the rights, and then restrict the rights only for the specified groups (to all groups except the ADMINS to be more specific). Can this be done? |
|
![]() |
|
![]() |
|
quote: I have found the solution in DXL help: void restrictPrefix(Module m) { AttrDef pref = find(current Module, "Prefix") User user for user in userList do { string uName = user.name string er_user = setDef(current Module, pref, read, uName) string err_user = setVal(current Module, pref, read, uName) } Group group for group in groupList do { string gName = group.name if(gName != "ADMIN") { string er_group = setDef(current Module, pref, read, gName) string err_group = setVal(current Module, pref, read, gName) } } return } |
|
![]() |
|
![]() |
|
![]() this is too much for me...I only what to restrict the rights for the users and groups in the current project, not for the entire database users and groups. How can I get the groupList from the current project? |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.