If you are an admin or owner of few orgs in github. If you have to add new users to a org, which you are not part of it. You will have to add yourself to that org first before adding other users.
Sometime you need to just add yourself to a repo that you are not currently a member of. Luckily this is fairly easily done via the Github Admin UI.
Adding yourself to an Organization:
Adding yourself to an organization is a bit trickier. You have to do it from the ssh github enterprise console itself.
For this you will need to have access to the Github Management Console in order to add your ssh key to the github appliance.
- Start at the rocket again.
- On the left menu enter the “Management Console”
- Enter the super secret management console password
- Add your SSH key to the admin Authorized SSH keys.
- Once completed you should be able to login to the github appliance via the command
ssh -p 122 admin@github.mydomain.com
|
/ __(_) |_| || |_ _| |__ | __|_ _| |_ ___ _ _ _ __ _ _(_)___ ___
| (_ | | _| __ | || | '_ \ | _|| ' \ _/ -_) '_| '_ \ '_| (_-</ -_)
\___|_|\__|_||_|\_,_|_.__/ |___|_||_\__\___|_| | .__/_| |_/__/\___|
|_|
Administrative shell access is permitted for troubleshooting and performing
documented operations procedures only. Modifying system and application files,
running programs, or installing unsupported software packages may void your
support contract. Please contact GitHub Enterprise technical support at
enterprise@github.com if you have a question about the activities allowed by
your support contract.
6. Once at the command line, you can then use the following command.
admin@github-mydomain-com:~$ ghe-org-admin-promote -u vdudi -o orgname
|
--> Adding vdudi as an admin of orgname
--> vdudi is now an admin of the orgname organization
--> Done.
admin@github-mydomain-com:~$
|