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: Find access rights for groups
Topic Summary:
Created On: 7-Feb-2007 16:15
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.
 7-Feb-2007 16:15
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

I want to find out the access rights for the existing groups for all the attributes in a module. This was discussed in this forum last year and the attached code was suggested. If the access rights are inherited, this code will give an output that they are inherited. But when we look at the Access Value (or Access Definition) window, we know what those access rights are for the group.
Is there any way that the same information can be obtained by the DXL code? Just by knowing that the access rights are inherited is not very helpful - if we know that the inherited access rights for the group for this attribute are RMD or R will be more helpful.

Report this to a Moderator Report this to a Moderator
 7-Feb-2007 17:25
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

There is a tiny bug in the script.
You just need to add "all" to the loop that gets access records for values.
Using the keyword all make the loop return inherited as well as specific access records.
The following has this correction.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 7-Feb-2007 18:02
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Thanks for the quick reply, Tony. This will be a great help for me.
- Krishna
Report this to a Moderator Report this to a Moderator
 13-Feb-2007 01:21
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I haven't looked at the script nor Tony's suggestion.

But it seems to me that it would be more useful if you displayed the access rights for the module, whether inherited or not, and then displayed 'inherited' or displayed nothing for those 'things' within the module that are inherited. You can easily deduce the rights for your groups for those Inherited things. This will distinquish between those rights that are Specific and those that are Inherited, something that I've always found to be very useful.

I'm suggesting that its easier to "Find Waldo" in a scene featuring only a few folks, rather than in a scene featuring 100s of folks.

Such a script would make use of the commands:
string isAccessInherited({Object o|Project p| Folder f|Item i|View v}, bool &inherited)
string isAccessInherited(Module m, [AttrType at,] bool &inherited)
string isAccessInherited{Def|Val}(Module m, AttrDef ad, bool &inherited)

e.g. ErrMess = isAccessInheritedDef(mod, ad, IsInherited)
if (!null ErrMess) whatever
elseif (!IsInherit) then dump the specific rights.

- Louie
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.