Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F34585427
create a gitlab admin
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
brennen
Aug 5 2021, 3:56 PM
2021-08-05 15:56:56 (UTC+0)
Size
288 B
Referenced Files
None
Subscribers
None
create a gitlab admin
View Options
== set a user as admin ==
{{{sh
# This will take a long time to load, just wait:
sudo gitlab-rails console
}}}
{{{ruby
irb(main):023:0> u = User.find_by_username('Thcipriani')
=> #<User id:7 @thcipriani>
irb(main):025:0> u.admin = true
=> true
irb(main):026:0> u.save!
}}}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9146808
Default Alt Text
create a gitlab admin (288 B)
Attached To
Mode
P16962 create a gitlab admin
Attached
Detach File
Event Timeline
Log In to Comment