Coder Social home page Coder Social logo

fasl / suspend-non-users Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davideg/suspend-non-users

0.0 2.0 0.0 128 KB

Automates the process of suspending users that have no repositories or gists on your GitHub Enterprise instance

License: MIT License

Python 100.00%

suspend-non-users's Introduction

Suspend Non Users

This script suspends users that have no repositories or gists on your GitHub Enterprise instance.

What problem is this solving?

Sometimes users create accounts on your instance out of curiosity but never create repositories or gists. This script automates the task of checking which users have no data on GitHub Enterprise and suspends them.

Known limitations

Note that this script suspends users that have no repository or gist data on a GitHub Enterprise instance but doesn't take into account session activity or whether they created issues, pull requests, or comments.

Dependencies

This script relies on:

Usage

Generate an access token for a GitHub Enterprise Admin user and set $GHE_ACCESS_TOKEN to this token:

export GHE_ACCESS_TOKEN=<token>

You can see usage information by executing the script with no arguments or options:

$ python suspend_non_users.py
usage: suspend_non_users.py <ghe_url> [option]

Options:
-i  Verify before suspending each user

When you're ready, provide the URL to your GitHub Enterprise instance as the first argument and optionally add -i if you'd like to manually verify each suspension:

$ python suspend_non_users.py https://my-ghe-host -i

suspend-non-users's People

Watchers

fasl avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.