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

From the user admin dashboard

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

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

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

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

  5. Suspend reasonProvide a reason to suspend the user.

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