Skip to content

feat: ✨Implement azdo team member add command#292

Merged
tmeckel merged 5 commits into
masterfrom
tmeckel/issue288
Jun 7, 2026
Merged

feat: ✨Implement azdo team member add command#292
tmeckel merged 5 commits into
masterfrom
tmeckel/issue288

Conversation

@tmeckel

@tmeckel tmeckel commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Closes #288

tmeckel added 5 commits June 7, 2026 21:07
Add IsIdentitySID to detect Azure DevOps identity SIDs in both bare and prefixed forms. Add NormalizeIdentitySID to ensure the Microsoft.TeamFoundation.Identity prefix is present where missing.
* Introduce ResolveSubjects on the extension Client to resolve multiple member identifiers in a single call, reducing azdo rest api round trips. the implementation partitions inputs by identifier type and dispatches each partition to the appropriate batch endpoint.
* Refactor ResolveSubject to delegate through the new batch path, eliminating duplicated lookup logic. unresolvable inputs are omitted from the result map; only catastrophic failures surface as errors.
* Add comprehensive tests for batched descriptor, sid, and search resolution, including partial results, not-found handling, and fallback paths. regenerate mocks for the updated interface.
Add the `add` subcommand to `team member` for adding users or groups to a team. Resolve members by email, descriptor, principal name, SID, or identity ID. Check existing membership before adding and output results as JSON or a table.
Add comprehensive test coverage for single and bulk member addition, including happy path, error handling, JSON output,
deduplication, and input order preservation.
@tmeckel tmeckel merged commit c9665f2 into master Jun 7, 2026
1 check passed
@tmeckel tmeckel deleted the tmeckel/issue288 branch June 7, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Implement azdo team member add command

1 participant