See if a users has write access to a git repository in TFS 2017? -


is there way in powershell see if given ad user has write access 1 or git repositories hosted in tfs 2017 project?

based on below answer can list groups user in with:

& $tfssecurity /imx $user /collection:$tfscollection 

next trying list permissions 1 of groups using tf.exe, e.g.:

& $tf permission  /group:"project valid users" /collection:$tfscollection 

that gives:

multiple identities found matching 'project valid users'. please specify 1 of following identities:

- [sample]\project valid users (vstfs:///classification/teamproject/04f6bd69-9382-43de-8a5a-2cd784ac39a3\project valid users) - [sample2]\project valid users (vstfs:///classification/teamproject/f98df8fa-f270-4750-a73b-3a3082aaa6c9\project valid users) 

i have tried adjust call with:

& $tf permission  /group:"[sample]\project valid users" /collection:$tfscollection 

but gives error:

the item $/ not exist @ specified version, or not have permission access it. 

am missing escape characters rules here?

there concept of permission each repo in tfs. find through web portal--version control--the repo--security

enter image description here

however, there no such permission directly called write in list, related should contribute. more detail description of each permission, please refer this--git permissions

to achieve need, list permission , display identity information specified group tf permission command &tfssecurity. match if user has related permission or in group enough permission.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -