mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[PR #136] [MERGED] Fix users command: required name flags for invite, role filter for list #317
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#317
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/136
Author: @swiftlysingh
Created: 1/25/2026
Status: ✅ Merged
Merged: 1/25/2026
Merged by: @rudrankriyam
Base:
cursor/users-and-invitations-support-6bce← Head:fix/users-command-improvements📝 Commits (1)
e819355Fix users command: add required name flags for invite, role filter for list📊 Changes
4 files changed (+50 additions, -18 deletions)
View changed files
📝
cmd/commands_test.go(+14 -4)📝
cmd/users.go(+26 -14)📝
internal/asc/client_options.go(+7 -0)📝
internal/asc/client_queries.go(+3 -0)📄 Description
Summary
Fixes critical issues found during code review and end-to-end testing of PR #101.
Changes
--first-nameand--last-namerequired flags tousers invite- The App Store Connect API requiresfirstNameattribute, without which invitations fail--rolefilter flag tousers list- Allows filtering users by role (e.g.,--role "ADMIN"or--role "DEVELOPER,APP_MANAGER")users updatewhen visible apps operation fails after roles update succeedsparseCommaSeparatedIDsalready handling empty stringsTesting Performed
Automated Tests
go test -run "Users" ./cmd/)--first-nameand--last-namevalidationEnd-to-End Tests (against real App Store Connect API)
asc users list --role "ADMIN"asc users invite --email "..." --first-name "..." --last-name "..." --roles "DEVELOPER" --visible-app "..."asc users invites listasc users invites get --id "..."asc users invites revoke --id "..." --confirm--first-name--last-nameManual Testing Recommended
Before merging PR #101 to main, recommend testing:
users listusers deletewith an actual user (carefully, in a test account if possible)users update --rolesto change a user's role and verify withusers get🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.