One of our projects wanted the module shared at level 2 and then they later decided to share it at level 1. Now they have about 9000 objects in level 2 and all of those objects are not inheriting their access because they were set to sharedable edit. |
Re: Need DXL script to change the access for objects at certain levels
I think the easiest thing to do here is to enable the Inherit access rights property in all objects, then use the Shared Edit menu option to re-apply shared-edit mode only to level 1 objects. The DXL code below will enable the Inherit access rights property for all objects in the module (including any that are soft deleted).
Object o
Module m = current
for o in entire m do {
inherited (o)
}
Paul Miller
|
Re: Need DXL script to change the access for objects at certain levels SystemAdmin - Fri Apr 06 03:31:46 EDT 2012
I think the easiest thing to do here is to enable the Inherit access rights property in all objects, then use the Shared Edit menu option to re-apply shared-edit mode only to level 1 objects. The DXL code below will enable the Inherit access rights property for all objects in the module (including any that are soft deleted).
Object o
Module m = current
for o in entire m do {
inherited (o)
}
Paul Miller
I do have another question and hope that you can answer that as well. We need to get a list of users out by access groups - the reports that DOORS exports is not very clean. It does not remove the users who have been deactivated. Is there a script that I can use to generate a report with the following information for users that have not been deactivated: Usrename User Full Name Groups they belong to Thank you very much again. Aparnna Hinduja USA |
Re: Need DXL script to change the access for objects at certain levels ahinduja - Tue Apr 10 12:01:11 EDT 2012 The attached script will create a simple tab separated report in the DXL output window. This report can be copied and pasted into MS Excel where Excel will interpret the tab delimiters as the start of a new column. All you will need to do is format the spreadsheet to adjust column width, row height, cell alignment, and so on, to suit. The report is split into two areas - the top area reports on each the account settings for each user including whether they are active or disabled and what access groups they are members of. The bottom area reports on each access group and the full names of each member of those groups. If a users account has been disabled, an "(access disabled)" suffix is added to the end of their name in the list of members for each group. Paul Miller Melbourne, Australia |