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 with site admin privileges to an organization owner, see the ghe-org-admin-promote section of "Command-line utilities."

Promoting a user from the user admin dashboard

  1. Sign in to your GitHub Enterprise instance at http(s)://HOSTNAME/login.

  2. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  3. Site admin settings search fieldIn the search field, type the name of the user and click Search.

  4. Site admin settings search optionsIn the search results, click the name of the user.

  5. Admin ToolsIn the upper-right corner of the page, click Admin.

  6. Admin ToolsIn the left sidebar, click Admin.

  7. Make site admin buttonIn Danger Zone, under Site Admin Access, click Make site admin.

  8. Confirmation dialog boxType a reason for promoting the user account to a site administrator.
  9. Click Promote.

Promoting using a command-line utility

  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 user admin dashboard

  1. Sign in to your GitHub Enterprise instance at http(s)://HOSTNAME/login.

  2. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  3. Site admin settings search fieldIn the search field, type the name of the user and click Search.

  4. Site admin settings search optionsIn the search results, click the name of the user.

  5. Admin ToolsIn the upper-right corner of the page, click Admin.

  6. Admin ToolsIn the left sidebar, click Admin.

  7. Make normal user  buttonIn Danger Zone, under Privileged Access, click Make normal user.

  8. Confirmation dialog boxType a reason for demoting the site administrator to a normal user account.
  9. Click Demote.

Demoting Using a command-line utility

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