TfsCmdlets icon indicating copy to clipboard operation
TfsCmdlets copied to clipboard

Get-TfsTeamProjectMember

Open igoravl opened this issue 9 years ago • 0 comments

List the members (groups or users) of a given Team Project

Should prompt for:

  • Type (User / Group)
  • Filter ("like" on user/group name)
  • Scope (Child / Descendant). Descendant should recursively process group membership

Should return:

  • User/group name
  • List of group a user/group is member of (if -Scope Descendant)

Example use case:

Which team projects is a given user member of?

$user = "John Doe"
Get-TfsTeamProject | ? { Get-TfsTeamProjectMember -Type User -Scope Descendant -Filter $user }

igoravl avatar Oct 14 '16 02:10 igoravl