Get set up:
$ git clone https://gist.github.com/11404512.git export-members; cd export-members Bundle (we're going to use Octokit):
$ bundle installReplace <org-username> with the username of your organization in export-all-members.rb and/or export-all-members-with-2fa-disabled.rb.
Then export all members:
$ OCTOKIT_ACCESS_TOKEN=<yourtoken> bundle exec ruby export-all-members.rb
$ cat export-all.csvor, export members with 2FA disabled:
$ OCTOKIT_ACCESS_TOKEN=<yourtoken> bundle exec ruby export-all-members-with-2fa-disabled.rb
$ cat export-2fa-disabled.csv