Article version: Enterprise Server 2.14

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-07-12. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Promoting or demoting a site administrator

Site administrators can promote any normal user account to a site administrator, as well as demote other site administrators to regular users.

Note: If LDAP Sync is enabled and the Administrators group attribute is set when configuring LDAP access for users, those users will automatically have site administrator access to your instance. In this case, you can't manually promote users with the steps below; you must add them to the LDAP administrators group.

For information about promoting a user to an organization owner, see the ghe-org-admin-promote section of "Command-line utilities."

In this guide

Promoting a user from the user admin dashboard

  1. In the upper-right corner of any page, click .

    Rocketship icon for accessing site admin settings

  2. In the search field, type the name of the user and click Search.

    Site admin settings search field

  3. In the search results, click the name of the user.

    Site admin settings search options

  4. In the upper-right corner of the page, click Admin.

    Admin Tools

  5. In the left sidebar, click Admin.

    Admin Tools

  6. In Danger Zone, under Site Admin Access, click Make site admin.

    Make site admin button

  7. Type a reason for promoting the user account to a site administrator.

    Confirmation dialog box

  8. Click Promote.

Demoting a site administrator from the user admin dashboard

  1. In the upper-right corner of any page, click .

    Rocketship icon for accessing site admin settings

  2. In the search field, type the name of the user and click Search.

    Site admin settings search field

  3. In the search results, click the name of the user.

    Site admin settings search options

  4. In the upper-right corner of the page, click Admin.

    Admin Tools

  5. In the left sidebar, click Admin.

    Admin Tools

  6. In Danger Zone, under Privileged Access, click Make normal user.

    Make normal user  button

  7. Type a reason for demoting the site administrator to a normal user account.

    Confirmation dialog box

  8. Click Demote.

Promoting a user from the command line

  1. SSH into your appliance.
  2. Run ghe-user-promote with the username to promote.

    $ ghe-user-promote username

Demoting a site administrator from the command line

  1. SSH into your appliance.
  2. Run ghe-user-demote with the username to demote.

    $ ghe-user-demote username

Ask a human

Can't find what you're looking for?

Contact us