Skip to content

Invite multiple users to your GitHub organization

Notifications You must be signed in to change notification settings

GDSCParulUniversity/GitHub-multi-user-invite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Multi user invite

A simple script to invite multiple users to a GitHub organization.

Usage

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

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.