Skip to content

TfsCmdlets Get-TFSGroup returns Error getting descriptor for project '' API resource location '' is not registered on #233

Closed Answered by igoravl
rhino2334 asked this question in Q&A
Discussion options

You must be logged in to vote

You're right - Azure DevOps Server 2020 does not have the API required for the Get-TfsGroup cmdlet.

As an workaround, you can try the following to get a single group:

$proj = 'YOUR_TEAM_PROJECT_NAME_HERE'
$group = 'YOUR_GROUP_NAME_HERE'
$g = Get-TfsIdentity "[$proj]\$group"
$members = $g.MemberIds | ForEach-Object { Get-TfsIdentity $_ }

However, if you're trying to enumerate the groups of said project, then there's another workaround. The basic idea here is to via the members of the Project Valid Users group. It contains all valid users (and groups) in the given team project. From there, you can get the groups you're looking for:

$proj = 'YOUR_TEAM_PROJECT_NAME_HERE'
$pvu = Get-TfsIdenti…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rhino2334
Comment options

You must be logged in to vote
1 reply
@rhino2334
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants