Hi.
The root username is not renamed, it is still root. Also the mail-adress for root is still the same.
I checked the attributes for the user root. User root is “admin”=>true
root@xyz:/# sudo gitlab-rails console
--------------------------------------------------------------------------------
Ruby: ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]
GitLab: 16.10.1 (6231cc1c609) FOSS
GitLab Shell: 14.34.0
PostgreSQL: 13.14
------------------------------------------------------------[ booted in 34.08s ]
Loading production environment (Rails 7.0.8.1)
irb(main):001:0> u = User.find_by_username('root')
=> #<User id:1 @root>
irb(main):002:0> pp u.attributes
{"id"=>1,
"email"=>"xyz",
"encrypted_password"=>"xyz",
"reset_password_token"=>nil,
"reset_password_sent_at"=>nil,
"remember_created_at"=>nil,
"sign_in_count"=>537,
"current_sign_in_at"=>Mon, 12 Feb 2024 08:28:45.801207000 CET +01:00,
"last_sign_in_at"=>Mon, 29 Jan 2024 10:50:20.874358000 CET +01:00,
"current_sign_in_ip"=>"xyz",
"last_sign_in_ip"=>"xyz",
"created_at"=>Thu, 20 Apr 2017 15:36:02.117969000 CEST +02:00,
"updated_at"=>Thu, 28 Mar 2024 12:00:49.234232000 CET +01:00,
"name"=>"Administrator",
"admin"=>true,
"projects_limit"=>100000,
"failed_attempts"=>0,
"locked_at"=>nil,
"username"=>"root",
"can_create_group"=>true,
"can_create_team"=>false,
"state"=>"active",
"color_scheme_id"=>1,
"password_expires_at"=>nil,
"created_by_id"=>nil,
"last_credential_check_at"=>Mon, 12 Feb 2024 08:28:46.545967000 CET +01:00,
"avatar"=>nil,
"confirmation_token"=>"xyz",
"confirmed_at"=>Thu, 20 Apr 2017 15:36:02.559844000 CEST +02:00,
"confirmation_sent_at"=>Fri, 21 Apr 2017 11:37:02.011400000 CEST +02:00,
"unconfirmed_email"=>"xyz",
"hide_no_ssh_key"=>false,
"notification_email"=>"xyz",
"hide_no_password"=>false,
"password_automatically_set"=>false,
"encrypted_otp_secret"=>nil,
"encrypted_otp_secret_iv"=>nil,
"encrypted_otp_secret_salt"=>nil,
"otp_required_for_login"=>false,
"otp_backup_codes"=>nil,
"public_email"=>"",
"dashboard"=>"project_activity",
"project_view"=>"activity",
"consumed_timestep"=>nil,
"layout"=>"fixed",
"hide_project_limit"=>false,
"unlock_token"=>nil,
"otp_grace_period_started_at"=>nil,
"external"=>false,
"incoming_email_token"=>"xyz",
"require_two_factor_authentication_from_group"=>false,
"two_factor_grace_period"=>48,
"last_activity_on"=>Mon, 12 Feb 2024,
"notified_of_own_activity"=>false,
"preferred_language"=>"de",
"theme_id"=>nil,
"accepted_term_id"=>nil,
"feed_token"=>"xyz",
"private_profile"=>false,
"include_private_contributions"=>nil,
"commit_email"=>nil,
"auditor"=>false,
"admin_email_unsubscribed_at"=>nil,
"group_view"=>nil,
"managing_group_id"=>nil,
"note"=>nil,
"roadmap_layout"=>nil,
"static_object_token"=>nil,
"first_name"=>nil,
"last_name"=>nil,
"role"=>nil,
"user_type"=>"human",
"static_object_token_encrypted"=>nil,
"otp_secret_expires_at"=>nil,
"onboarding_in_progress"=>false,
"color_mode_id"=>1,
"otp_secret"=>nil}
=>
{"id"=>1,
"email"=>"xyz",
"encrypted_password"=>"xyz",
"reset_password_token"=>nil,
"reset_password_sent_at"=>nil,
"remember_created_at"=>nil,
"sign_in_count"=>537,
"current_sign_in_at"=>Mon, 12 Feb 2024 08:28:45.801207000 CET +01:00,
"last_sign_in_at"=>Mon, 29 Jan 2024 10:50:20.874358000 CET +01:00,
"current_sign_in_ip"=>"xyz",
"last_sign_in_ip"=>"xyz",
"created_at"=>Thu, 20 Apr 2017 15:36:02.117969000 CEST +02:00,
"updated_at"=>Thu, 28 Mar 2024 12:00:49.234232000 CET +01:00,
"name"=>"Administrator",
"admin"=>true,
"projects_limit"=>100000,
"failed_attempts"=>0,
"locked_at"=>nil,
"username"=>"root",
"can_create_group"=>true,
"can_create_team"=>false,
"state"=>"active",
"color_scheme_id"=>1,
"password_expires_at"=>nil,
"created_by_id"=>nil,
"last_credential_check_at"=>Mon, 12 Feb 2024 08:28:46.545967000 CET +01:00,
"avatar"=>nil,
"confirmation_token"=>"xyz",
"confirmed_at"=>Thu, 20 Apr 2017 15:36:02.559844000 CEST +02:00,
"confirmation_sent_at"=>Fri, 21 Apr 2017 11:37:02.011400000 CEST +02:00,
"unconfirmed_email"=>"xyz",
"hide_no_ssh_key"=>false,
"notification_email"=>"xyz",
"hide_no_password"=>false,
"password_automatically_set"=>false,
"encrypted_otp_secret"=>nil,
"encrypted_otp_secret_iv"=>nil,
"encrypted_otp_secret_salt"=>nil,
"otp_required_for_login"=>false,
"otp_backup_codes"=>nil,
"public_email"=>"",
"dashboard"=>"project_activity",
"project_view"=>"activity",
"consumed_timestep"=>nil,
"layout"=>"fixed",
"hide_project_limit"=>false,
"unlock_token"=>nil,
"otp_grace_period_started_at"=>nil,
"external"=>false,
"incoming_email_token"=>"xyz",
"require_two_factor_authentication_from_group"=>false,
"two_factor_grace_period"=>48,
"last_activity_on"=>Mon, 12 Feb 2024,
"notified_of_own_activity"=>false,
"preferred_language"=>"de",
"theme_id"=>nil,
"accepted_term_id"=>nil,
"feed_token"=>"xyz",
"private_profile"=>false,
"include_private_contributions"=>nil,
"commit_email"=>nil,
"auditor"=>false,
"admin_email_unsubscribed_at"=>nil,
"group_view"=>nil,
"managing_group_id"=>nil,
"note"=>nil,
"roadmap_layout"=>nil,
"static_object_token"=>nil,
"first_name"=>nil,
"last_name"=>nil,
"role"=>nil,
"user_type"=>"human",
"static_object_token_encrypted"=>nil,
"otp_secret_expires_at"=>nil,
"onboarding_in_progress"=>false,
"color_mode_id"=>1,
"otp_secret"=>nil}
irb(main):003:0>