Skip to content

Latest commit

 

History

History

user-auditing

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Suspended User Audit

Lists total number of active, suspended, and recently suspended users. Gives the option to unsuspend all recently suspended users. This is mostly useful when a configuration change may have caused a large number of users to become suspended.

Installation

Clone this repository

git clone git@github.com:github/platform-samples.git
cd api/ruby/user-auditing

Install dependencies

gem install octokit

Usage

Configure Octokit

export OCTOKIT_API_ENDPOINT="https://github.example.com/api/v3" # Default: "https://api.github.com"
export OCTOKIT_ACCESS_TOKEN=00000000000000000000000

Execute

ruby suspended_user_audit.rb