Goutam Thakur
Goutam Thakur

Reputation: 11

GitLab account blocked while changing the username. How do I unblock it?

I wanted to change my username on GitLab so I followed the following procedure:

  1. Navigate to your profile's Settings > Account.
  2. Enter a new username under Change username.
  3. Click Update username.

After clicking on update nothing seem to change so I refreshed the page and I receive the following error:
Your account has been blocked. Please contact your GitLab administrator if you think this is an error.

How do I unblock my account?

PS: I opened a GitLab SaaS account

Upvotes: 1

Views: 7378

Answers (1)

VonC
VonC

Reputation: 1330092

This thread mentions

Check <external_url>/admin/application_settings/general > expand Sign-up Restrictions, and verify if the checkbox for Send confirmation email on sign-up is checked or unchecked?

Having that setting enabled will send a confirmation email, and for that user to be “unlocked”, it requires the confirmation link in the confirmation email is clicked.

If you’re creating a user with Ansible and the confirmation email isn’t received and the link it contains clicked, it would cause the “user is blocked” error you’re seeing.

If you did not check the box for this requirement, I suspect the default setting might’ve changed in 12.9.x. Do you notice if this checkbox was checked before upgrading?

Unchecking the box, or manually “confirming” the email of your Ansible-created user in the GitLab Admin UI should remove the block on this user.

In your case, since you are changing the user manually, see if:

  • the IP is blocked (try from another network/device)
  • if you have an IDE opened with a GitLab repository accessed through HTTPS: the IDE might need to refresh the Git repository state periodically, and would be using the old credentials (old username).

The OP goutam thakur confirms in the comments:

My account was unblocked after I submitted a request through the form "Gitlab.com (SaaS) user accounts and login issues".

Upvotes: 0

Related Questions