Add *multiple* organization members to a team / Bulk add users to team #74479
Unanswered
parkeraddison
asked this question in
General
Replies: 2 comments
-
Script is not working as expected - invalid API endpoint: "C:/Program Files/Git/orgs/xxx/teams/yyy/memberships/xxx". Your shell might be rewriting URL paths as filesystem paths. To avoid this, omit the leading slash from the endpoint argument |
Beta Was this translation helpful? Give feedback.
0 replies
-
Should it be any use, here's how I just solved this using PowerShell & GitHub's CLI:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Product Feedback
Body
Hi GitHub.com Organizations/UI team,
I face a common user pattern where I want to add several organization users to a team at once -- e.g. if I'm creating a new team, or onboarding multiple people. Currently the process is completely manual and requires at least 3-4 clicks per user ("Add a member", type their username, "Add", "Confirm", rinse & repeat. See https://docs.github.com/en/organizations/organizing-members-into-teams/adding-organization-members-to-a-team). This is not productive for teams of more than a few members!
Ideally the UI for would allow us to add multiple users to a team in the same modal box by using something like comma-separated usernames.
Currently the only workaround is to directly call the GitHub API, as explained in this blog post:
"GitHub: Script to Mass Add Users to a Team": https://josh-ops.com/posts/github-script-to-add-users-to-teams/
Thanks for your consideration!
Beta Was this translation helpful? Give feedback.
All reactions