I\'ve just setup gitlab, but I\'m completely lost with regards to admin user. The wiki seems silent about this topic, and google hasn\'t been of help either.
So, how do
This is what I did to make a LDAP (or Windows AD) user vikas as admin.
First login on GitLab portal and logout, then run the below commands.
gitlab-rails console production
u = User.where(id: 1).first
u.admin = true
u.save!
exit
After running the above commands, login again and now your will have admin privileges for vikas AD user.