Skip to content

Instantly share code, notes, and snippets.

@Hollywood
Last active November 3, 2017 20:56
Show Gist options
  • Save Hollywood/e9c2c12e1c682d7bc320b37f86e27352 to your computer and use it in GitHub Desktop.
Save Hollywood/e9c2c12e1c682d7bc320b37f86e27352 to your computer and use it in GitHub Desktop.
Toggling Username Renaming

Steps to Toggle Turning On/Off the Option to Change Username in GHE

  1. SSH into your GitHub Enterprise instance.
  2. Run the GitHub Enterprise Console by typing the following:

ghe-console -y

  1. When in the console, type the following to change the username option:

GitHub.config.set("user_renaming_enabled", "false", dat("YOUR_USERNAME"))

  1. You should see a response that looks like the following:

=> false

  1. If successful, type exit to exit the console. If not successful, there is a chance that the user you used in your configuration setting does not exist in the system. The third parameter in the config.set() method is the user name for audit purposes and must be an administrator.

  2. Once exiting the GHE console, you should be back in your SSH session.

  3. To refresh config settings, at the SSH prompt type:

ghe-config-apply

  1. Exit your SSH session and then confirm that the Username Change setting has disappeared from the settings menu.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment