Team System Developer Center > Visual Studio Team System Forums > Team Foundation Server - Version Control > "The item $.... does not exist at the specified version team foundation server" - how to remove read permission from subprojects with tfdir
Ask a questionAsk a question
 

General Discussion"The item $.... does not exist at the specified version team foundation server" - how to remove read permission from subprojects with tfdir

  • Wednesday, October 14, 2009 2:55 PMDmitri K Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Good morning,

    I'm really sorry for bothering you with this question. We have exactly the same problem with one described in http://social.msdn.microsoft.com/Forums/en-US/tfsversioncontrol/thread/24867ab1-b32d-4148-a850-3751d870c52d

    We're using TFS2008 SP1. I also have October 2008 TFS power tools installed.

    Unfortunately the step 2 of the solution proposed in the previous thread does not work for me


    1) tf perm $/test /allow:Read /group:[test]\TestGroup
    2) tfdir $/test/* | % { tf perm $_.serveritem /deny:Read /group:[test]\TestGroup }
    3) tf perm $/test/grand/parent /allow:Read /group:[test]\TestGroup

    When I run tfdir as it specified above, I get an error that tfdir cannot find the source control server.

    If I add /s:server parameter there, it shows the different error:
    Get-TfsChildItem : A parameter cannot be found that matches parameter name '$/Project/*'. At line:1 char:6

    Project
    is the name of the root project in TFS.

    I really appreciate your help.

    Thank you!
    • Changed TypeRuiz YiModeratorSunday, October 25, 2009 3:42 AMCustomer is unresponsive
    •  

All Replies

  • Friday, October 16, 2009 6:55 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Dmitri,

    Do you mean tf dir command?  The dir command displays the contents of the Team Foundation version control server.  I think Richard is using PowerShell Pipeline(I am not familiar with it)

    You can use tf Permission Command to deny a permission. or do this in Team explorer. 

    Best Regards,
    Ruiz
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
  • Friday, October 16, 2009 12:34 PMDmitri K Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Ruiz,

    Thank you for the answer!

    No, I'm talking about tfdir command from cmdlets. The problem and proposed solution described in the following email thread . I was able to mask the error by adding read permissions for the appropriate group to the root project. Although I need to remove it from the child projects to prevent the group from reading source code.

    Unfortunately the syntax proposed by Richard Berg is not working for me nor I can find any documentation about the tfdir. Deny is not working for me either because it blocks the group from access to the child projects.

    To recap - I'm trying to configure the TFS to give one of the groups access to only a few projects in the tree and block read access to the other projects

    Thank you,
    Dmitri
  • Monday, October 19, 2009 6:47 PMCongyi WuMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Can you try tfdir from a working directory mapped to a workspace on that server? Also, btw how many workspaces do you have on that client machine?
  • Tuesday, October 20, 2009 4:13 PMRichard Berg Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Random guess: is there a chance that you have the 2005 version of tf.exe in your PATH?  The Power Tools will only look in the 2008 workspace cache.  Running 'tf workspaces /s:<yourserver>' with the 2008 version of tf.exe should allow the cmdlets to work inside any directory where ordinary 'tf dir' works.
  • Wednesday, November 04, 2009 3:59 PMDmitri K Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Can you try tfdir from a working directory mapped to a workspace on that server? Also, btw how many workspaces do you have on that client machine?

    This helps with the issue. Thank you very much!