Ali Poustdouzan
Ali Poustdouzan

Reputation: 392

Deny a user to see inside a class which is references from another project in TFS 2015

I have a solution and it have 2 project in it, Project-1 is web form application and Project-2 have some confidential methods like decode and encode methods. I want to let my junior developers access to Project-1 and use my Project-2 methods (which I reference before and add to my Project-1) but can't see inside Project-2 methods because I don't want them to see how I encode and decode string and numbers for security reason.

I tried to deny read access in Project2 security (like picture Project2 Security Page) but after that developers can't use any method from Project2 and they receive error.

Is there any solution I can do this because is really important to me my junior developers don't see my encode and decode method

Edit : I have to say I can't use web service for my Decode and Encode because this application is for a customer and he will use it on local network without internet access.

Upvotes: 0

Views: 97

Answers (2)

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31075

TFS can't achieve what you want. If you deny the Read permission for a file/folder, the user won't be able to see/use this file/folder.

You may consider managing your references via a package manager such as NuGet. Your senior developers can create and maintain the nuget package, while your junior developers only need to enable the package restore in their project.

Upvotes: 0

John Wu
John Wu

Reputation: 52280

  1. Put the sensitive code in its own folder in source control

  2. Modify the developer permissions on that folder. See this question and this documentation, which provides this step-by-step:

  1. On the Visual Studio View menu, click Other Windows, and then click Source Control Explorer.

  2. Right-click the folder or file for which you want to set permissions, and then click Properties.

  3. In the Properties dialog box, click the Security tab.

  4. In the Add users and groups area, select Team Foundation Server Group to set permissions for a Team Foundation Server group. Otherwise, select Windows user or group.

  5. Click Add.

  6. In the Users and Groups box of the Properties dialog box, select the user or group for which you want to set permissions.

  7. In the Permission box, select either Allow or Deny for each permission.

  8. Click OK to close the Properties dialog box.

  1. Make the DLL that results from the sensitive code available in a folder to which the devs have access.

Upvotes: 1

Related Questions