It's all about the answers!

Ask a question

Restrict the deliver access to the specific set of folders in a component of a particular stream.


vinay kumar bondugula (5411841) | asked Sep 24 '20, 2:10 p.m.

 Hi All,


We have a requirement where we want to restrict the deliver access to the specific set of folders in a component of a particular stream.

All project area users must be having only Read access to these folders ( This folders must be visible and users must be able to checkout )

One of the approach we tried :

Restricting using Team Area:
Created test Team Area - Test_SCM
Changed the access control of the specific folder to the Test_SCM
Added sample users to validate the scenario.

Impact:
Issue we faced with this approach is that apart from these sample users, other users are not able to view the specific folder itself. In other words, users who are not part of the Team Area couldn’t even read/view that folder in all the streams. 

Kindle help us with the suitable approach for this requirement as we were only able to lock the files, components and stream not the folders in RTC. There are more than 50 files in each folder and it is time consuming to lock/unlock every file.

Thanks,
Vinay

2 answers



permanent link
Shashikant Padur (4.1k27) | answered Sep 25 '20, 5:35 a.m.
JAZZ DEVELOPER

One way to achieve this is to create a new role and assign to those users that have permission to deliver the files and use "Restrict Changes to Items" precondition.

1) In the create a new configuration wizard, select Source Control -> Deliver Phase 2 operation. Make this configuration apply to "Everyone" in the next page.
Add the precondition, Restrict Changes to Items. For this precondition, select the stream, set Matching Changes as "Prevented" and add all the files you want to be write protected. Note: You can only protect files at the moment.
2) Again add a new configuration, select Source Control -> Deliver Phase 2 operation. Make this configuration apply to the "New Role" in the next page.
Add the precondition, Restrict Changes to Items. For this precondition, select the stream, set Matching Changes as "Allowed" and add all the files you want to be write protected. Note: You can only protect files at the moment.

Another way is to write a custom advisor similar to "Restrict Changes to Items" and allow selection of folders/files and also roles/users/groups.


Comments
Ralph Schoon commented Sep 25 '20, 6:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Nice, was not aware of that!


permanent link
Ralph Schoon (57.2k23642) | answered Sep 25 '20, 4:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Sep 25 '20, 5:04 a.m.
Your requirement is not completely clear to me. You have components and you want access to the content, but you want to select folders that can be delivered to/or sleect folders that can not be delivered to/changed? Who can deliver there and how would one know not to do it?

These are the ways to control such kind of stuff: https://jazz.net/library/article/215 .
You can find more articles about the SCM here: https://jazz.net/library/#sort=pubDate&tag=SCM

In addition to that, there are advisors that provides the capability to "Restrict Change Set Delivery to Components in a Stream" and "Restrict Delivery to Streams". This is also not on file or folder level.

I am not sure if there is a built in capability. It might be possible to create custom check in and deliver advisors that do what you want. This is a complex task and requires Eclipse, Java and API knowledge.

BTW: Read protection is read protection and if you don't have read access, you can not access the data obviously.

Your answer


Register or to post your answer.