Skip to content

markus-work/github-add-all-org-members-to-team

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Github Organisational Team Adder

This script is a quick way to add all your organisations members into a single team.

The script uses an access key (which requires org permissions) to call the following endpoints:

  • orgs/:org/teams (used to get the team unique ID)
  • orgs/:org/members (used to get the organisation members)
  • teams/:teamid/memberships/:username (used to add the user to the team)

The script can be run as follows:

python add_users.py myverysecretpersonalaccesskey My-Organisation team-name

An example output may be:

Team-ID: 2081234 Processing users... Processing: martysweet User is an active member Processing: user2 User is an active member

About

Adds all the organisational members to a Github team

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%