Skip to content

Instantly share code, notes, and snippets.

@kelly-sovacool
Created August 26, 2025 15:53
Show Gist options
  • Save kelly-sovacool/53355da142c0363769f25f0a96a8aac3 to your computer and use it in GitHub Desktop.
Save kelly-sovacool/53355da142c0363769f25f0a96a8aac3 to your computer and use it in GitHub Desktop.
bulk-add GitHub users to team

based on the directions here https://josh-ops.com/posts/github-script-to-add-users-to-teams/

  1. export all org users as csv file. https://github.com/orgs/ORG/people
  2. include only the user login. cut -f 1 -d ',' export-ORG-1756223164.csv > members.csv. Remove the first line of the file ('login', the column name) in a text editor.
  3. download this script: https://github.com/joshjohanning/github-misc-scripts/blob/main/gh-cli/add-users-to-team-from-list.sh
  4. run the script: bash ./add-users-to-team-from-list.sh members.csv ORG TEAM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment