A simple script to invite multiple users to a GitHub organization.
Clone this repository & install dependencies:
git clone https://github.com/GDSCParulUniversity/Github-multi-user-invite.git
cd github-multi-user-invite
pip install -r requirements.txt
Create a personal access token with the admin:org
scope from GitHub and create a .env
file with the following content:
GITHUB_ACCESS_TOKEN=your_token_here
Note You should be have owner/admin access to the organization.
Create a file ( e.g. users.txt
) with the list of users to invite, one per line.
example:
saicharankandukuri
vinci-d
torvalds
Warning Cross check the usernames before adding them to the list for safety.
Run the script:
python3 main.py --org your_org_name --users_file users.txt
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.