0

I am implementing the TFS Security commands to change a git master branch acess control permissions to DENY for contribute field.

Below is the command I am using:

/tfssecurity.exe /a+ GitRepositories repositories/[543473b8-6186-42b3-bdab-b22bc44cc8f8/] GenericContribute n:'"[Projectname]\TFSGroup'" DENY /collection:CollectionURL"

I am using powershell 3.0 for this project and I get below error

Error: The security namespace GitRepositories does not exist.

Could someone help me with this?

2 Answers 2

1

You missed a blank space in "Git Repositories" name space. Try following:

tfssecurity.exe /a+ "Git Repositories"
2
  • What would be the command to change the permissions only for Master branch on TFS?? I have the below command: .\tfssecurity.exe /a+ "Git Repositories" repositories/[teamProject] GenericContribute n:'"[teamProject]\Contributors'" ALLOW /collection:CollectionURL/
    – Akhi
    Jun 3, 2016 at 13:46
  • @Akhi I cannot find any document about this either and would recommend you to set the security for branch from web portal. Jun 6, 2016 at 8:48
0

According to the error info, you are implementing with a not exist namespace.

You can use tfssecurity /a command to view a list of namespaces at the server level

The namespace that contains the group from which you want to remove the user or group. You can also use the tfssecurity /a command to view a list of namespaces at the server level, the collection level, and the project level.

More detail info of this command, please refer the link from MSDN: Change groups and permissions with TFSSecurity

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.