based on the directions here https://josh-ops.com/posts/github-script-to-add-users-to-teams/
- export all org users as csv file. https://github.com/orgs/ORG/people
- 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. - download this script: https://github.com/joshjohanning/github-misc-scripts/blob/main/gh-cli/add-users-to-team-from-list.sh
- run the script:
bash ./add-users-to-team-from-list.sh members.csv ORG TEAM