Can I copy permissions from one project or view to another project or view?

0 Likes

Problem:

Can I copy permissions from one project or view to another project or view?

Resolution:


  • Product Name: StarTeam
  • Product Version: 2005 R2
  • Product Component: SDK
  • Platform/OS Version: All


Please download the files attached to this article and follow the steps listed below:

  1. 1. Download the files I have attached to this case.
  2. Extract the files to a similar location path as the one shown below

    C:\Program Files\Borland\StarTeam SDK 2005 R2\samples\Copy Permissions

  3. Inside this directory, create a folder called "JScript". In this JScript folder put the four java script (js) files.

    The CopyPermissions.wsf file will reside in:

    C:\Program Files\Borland\StarTeam SDK 2005 R2\samples\Copy Permissions

    The JS files will reside in:

    C:\Program Files\Borland\StarTeam SDK 2005 R2\samples\Copy Permissions \JScript

  4. Now execute the following from the command line:
    C:\Program Files\Borland\StarTeam SDK 2005 R2\samples\Copy Permissions\CopyPermissions.wsf -S 0.20.111.101 -e 49201 -U User -W borland -P Solution3 -V Solution3 -p Solution4 -v Solution4 -O

Note: In this example we have used dummy Server credentials you will need to replace the following options.

  • S - Replace with your server address
  • E - Replace with your server endpoint port number
  • U - Replace with a StarTeam user will adequate access rights to copy
  • W - Replace with the password for the user specified in option - U
  • P - Project you wish to copy from (source project)
  • V - View you wish to copy permissions from (source view)
  • p - Destination project you wish to copy new permissions to.
  • v - Destination view you wish to copy the permissions to.

To see the full list of options double click on the CopyPermissions.wsf file to open the options available.

The outcome of the above cmd line will result in the destination project (Solution4) getting the full permissions copied from the source project (Solution3).

To confirm this select the menu option PROJECT | ACCESSS RIGHTS and you will see the access rights from the source project (Solution3) will have been copied to this new project.


Related documents:


Old KB# 27913
Comment List
Related
Recommended