You can suspend any user account from the user admin dashboard or by using command-line tools.

From the user admin dashboard

  1. Open a user's profile page in your browser. Profile page

  2. In the upper-right corner of the page, click . Rocket ship icon

  3. Click the Admin tab on the left side of the page. Admin tab

  4. Under "Account suspension," in the red Danger Zone box, click Suspend. Suspend button

  5. Provide a reason to suspend the user. Suspend reason

The change takes effect immediately—the user will not be notified. If the user attempts to pull or push to a repository, they'll receive the following message:

    $ git clone git@[hostname]:john-doe/test-repo.git
    Cloning into 'test-repo'...
    ERROR: Your account is suspended. Please check with your installation administrator.
    fatal: The remote end hung up unexpectedly

Using command-line tools

  1. SSH into your appliance.

  2. Run ghe-user-suspend with the username to suspend.

    ghe-user-suspend username

Further reading