Hi, I tried archiving the user list from Doors DB and tried restoring the archived user list into a clone DB. The restoring process copied all the user names and the respective Groups in to the clone DB. But not the access permissions from the primary DB. All the users in the new DB are having RMCD access for all its folders and projects. (This archeive and restore is done using Adminstrator account) How can i import all the users along the access permissions?
Many Thanks in advance Gowtham0809 - Mon Nov 21 04:04:21 EST 2016 |
Re: archive and restore of user list As far as I know, you can't easily. The permissions are stored within the projects, folders, modules, so, if you want to clone the permissions, you would have to archive / restore all DOORS items. But! the DOORS "restore archive" mechanism will ignore all permission information - so, a "restore all projects" would not help you.
IMO you have two choices: a) clone the complete database by a1 copying the file structure of the server to the new DB and a2) adopting the DOORS DB ID or b) manipulate permissions of existing item by b1) restoring all relevant items into the destination DB using "restore project", b2) writing a DXL script that b2A) exports all permission information in the source database into a readable format (don't forget inheritance object permission, attribute definition permission, attribute modification permission etc.) and b2B) foreach item in the destination database, lookup the permission information and apply it to the destination object |
Re: archive and restore of user list Mike.Scharnow - Mon Nov 21 04:52:35 EST 2016 As far as I know, you can't easily. The permissions are stored within the projects, folders, modules, so, if you want to clone the permissions, you would have to archive / restore all DOORS items. But! the DOORS "restore archive" mechanism will ignore all permission information - so, a "restore all projects" would not help you.
IMO you have two choices: a) clone the complete database by a1 copying the file structure of the server to the new DB and a2) adopting the DOORS DB ID or b) manipulate permissions of existing item by b1) restoring all relevant items into the destination DB using "restore project", b2) writing a DXL script that b2A) exports all permission information in the source database into a readable format (don't forget inheritance object permission, attribute definition permission, attribute modification permission etc.) and b2B) foreach item in the destination database, lookup the permission information and apply it to the destination object Thanks for the response,
Is there any DXL scripts to do the same as you mentioned in b2.?. |
Re: archive and restore of user list Gowtham0809 - Mon Nov 21 04:57:10 EST 2016 Thanks for the response,
Is there any DXL scripts to do the same as you mentioned in b2.?. There might be companies who already implemented something like this, but I'm not sure whether they will share it, as the development will probably take some days. I see that Tony Goodman has part of a solution for b2A posted at http://www.smartdxl.com/content/?p=385. Perhaps this will give you a starting point for implementation. You could also use his getPermission and setPermission functions at http://www.smartdxl.com/content/?cat=4 |