Answers for "set user as admin gitlab"

0

set user as admin gitlab

# Open the rails console, i.e:
sudo gitlab-rails console -e production
# Excute the follwing:

# Find user
user = User.find_by(username: 'my_username')
# Make the desired change
user.admin = true
# Save the changes
user.save!
# Exit the console
exit

# Log in/refresh page to see the changes
Posted by: Guest on January-01-2021

Code answers related to "set user as admin gitlab"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language