How to fix the "block-unregistered-user" error for Gitlab projects

Problem:

If the Prevent unregistered user spend feature is enabled for your Gitlab project, you might see that your builds fail with the following error message: block-unregistered-user.

When you sign up to CircleCI with your email address, you can accept an invite to a Gitlab project, you will be able to view and follow the project and trigger builds as long as builds are not restricted to registered users. However, if you have not connected your Gitlab user to your CircleCI account upon sign-up, you will not be considered a registered user of the organization and our system will prevent you from triggering a build if the Prevent unregistered user spend feature is enabled for the organization.

Solution:

You can follow the below steps to connect your Gitlab user to your CircleCI account:

  1. Log in with your email address and password on CircleCI
  2. Click on the organization's name in the top left corner of the page and select Create New Organization on the drop-down menu:

                                               Screenshot 2023-07-27 at 22.51.08.png

  3. Choose to connect your Gitlab account and log in with your Gitlab credentials:

            Screenshot 2024-01-28 at 14.34.49.png   
  4. Authorize CircleCI to connect your account:
                        Screenshot 2023-07-27 at 22.52.34.png

If you do not wish to set up an additional organization, please cancel adding a project at this point and navigate away from this page. Your user will be a registered Gitlab user now and you will be able to trigger builds.

Additional Resources:

 

 

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.