2016-05-27 2 views
0

私はgit masterブランチのアクセス制御権を貢献フィールドのDENYに変更するTFSセキュリティコマンドを実装しています。以下はTFSSecurityでgitブランチのアクセス権を変更する

私が使用していますコマンドです:

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

私はこのプロジェクトのためのPowerShell 3.0を使用していますが、私はエラー

Error: The security namespace GitRepositories does not exist.

の下に取得誰かがこれで私を助けてもらえますか?

答えて

0

エラー情報によれば、存在しない名前空間で実装しています。あなたは、サーバーレベルでこのコマンドの

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.

詳しい詳細情報を名前空間のリストを表示しtfssecurity /aコマンドを使用することができます

、MSDNからのリンクを参照してください。Change groups and permissions with TFSSecurity

0

あなたは空白を逃しました"Git Repositories"ネームスペースにあります。以下を試してください:

tfssecurity.exe /a+ "Git Repositories" 
+0

これは機能しました!ありがとうございました:) – Akhi

+0

TFSのマスタブランチのアクセス権のみを変更するコマンドは何ですか? \ tfssecurity.exe/a + "Gitリポジトリ"リポジトリ/ [teamProject] GenericContribute n: '[teamProject] \ Contributors' "ALLOW/collection:CollectionURL/ – Akhi

+0

@Akhiこれについての文書は見つかりませんでしたまた、Webポータルからブランチのセキュリティを設定することをお勧めします。 –

関連する問題