Admin user not found in gitlab

Create a GitLab Admin User password, When you authenticate git-lab with Active Directory server. So there will not be any admin user available for git-lab. you can also change user permissions in the GitLab.

Whoever will log in to your git-lab server will act like normal users with the same permission as other users. So you need to create an Admin user when your server is authenticated by the AD server.

Create GitLab Admin User After Authentication With AD:

You can make any of your AD users to the admin of Git-lab Server like I make a user ‘Panki” to the admin user of git-lab.

Check Out: Merge Branch In Git On Gitlab

With a Normal AD user, you can see there are no admin configuration settings.

Create Gitlab Admin User

Check Out: Error 502 While accessing the Gitlab

Create an Admin User with using below Commands

gitlab-rails console production

 gitlab admin user

Check Out: How To Add Member In GitHub Repository Project By Invite

Then run the below commands in sequence.

user = User.find_by(username: 'panki')

user.admin = true

user.save!

Check Out: LDAP Authentication With Gitlab Server

After exiting the console, Now run the below command to make changes in a file.

gitlab-ctl reconfigure

As you can see we have now the Configuration Git-lab settings.

You’re done gitlab admin password word change user permissions gitlab pe

LEAVE A REPLY

Please enter your comment!
Please enter your name here