It's all about the answers!

Ask a question

SCM: Restrict deliver of given file to some users of a team

Erwin Kunz (94687086) | asked Aug 18 '16, 11:12 a.m.
edited Aug 20 '16, 11:04 a.m. by David Lafreniere (4.8k7)
Our internal customer came to me with the request of being able to restrict deliver right only for him for a given file in a given component.

ComponentA belongs to TeamA, with User1 and User2
User1 shall be able to deliver example.txt, but User2 not

What would be the best solution to achieve that?

So far I have found the precondition feature on Deliver Phase 2, where I can define the behavior per Role.
This would request me to create a special Role, what seems  strange. Team would be in my case better.

Thank you

Accepted answer

permanent link
Ralph Schoon (63.3k33646) | answered Aug 19 '16, 3:47 a.m.
You can create a custom advisor to do that. As Geoff explains there are other means to control permissions. But it is possible to extend RTC.

Here an example:

You can configure the users and files and store that in a configuration. shows how to do that. has more examples for API e.g. to access the logged in user to find out which user tries the deliver for example in
David Lafreniere selected this answer as the correct answer

One other answer

permanent link
Geoffrey Clemm (30.1k33035) | answered Aug 18 '16, 5:25 p.m.
In RTC, the write permission model is role-based, so all write permissions are defined by role, not by user or team membership.   You could certainly ask for this as an enhancement, but you'd need to have a pretty compelling reason, since defining a new role is an available workaround.

David Lafreniere commented Aug 20 '16, 11:21 a.m.
Geoffrey is correct in that that the write permission model is role-based. Generally though this would apply to the 'delivery' of all files in a component and not specific files or folders. I also do not think there is an out-of-the-box advisor/precondition that lets you modify 'who' can deliver specific files/folders in a component (however you could write one as suggested by Ralph.)

Also note that you can right-click on an individual file in the Repository Files view and select "Change Access Control...". This changes the read permission of that specific file, but not the write permission however.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.