Need DXL script to change the access for objects at certain levels

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.

How/What DXL script can I use to do mass changes to object access specifically to check the box that says "Inherit Access". I have done it manualy for another project, but they only had about 20 object that needed to be changed.

Please HELP. I am not very familiar with DXL Scripting or how to implement it, but if I Can get the script, I can work with one of our team members and run the script.

Thank you
Aparnna
ahinduja - Thu Apr 05 16:55:38 EDT 2012

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
Melbourne, Australia

 

 

Re: Need DXL script to change the access for objects at certain levels
ahinduja - Tue Apr 10 12:01:11 EDT 2012

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
Melbourne, Australia

 

 

Thank you very much Paul. That did take care of it.

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
SystemAdmin - Tue Apr 10 19:59:17 EDT 2012

ahinduja - Tue Apr 10 12:01:11 EDT 2012
Thank you very much Paul. That did take care of it.

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

I have a script that will do most of what you want.

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