gitlab-org--gitlab-foss/doc/user/profile/account/create_accounts.md

2.5 KiB

type stage group info
reference Manage Authentication and Authorization To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments

Creating users (FREE SELF)

You can create users:

Create users on sign-in page

Prerequisites:

Users can create their own accounts by either:

  • Selecting the Register now link on the sign-in page.
  • Navigating to your GitLab instance's sign-up link. For example: https://gitlab.example.com/users/sign_up.

Create users in Admin Area

Prerequisites:

  • You must have administrator access for the instance.

To create a user manually:

  1. On the top bar, select Main menu > Admin.
  2. On the left sidebar, select Overview > Users (/admin/users).
  3. Select New user.
  4. Complete the fields.
  5. Select Create user.

Create users through authentication integrations

Users are:

  • Automatically created upon first sign in with the LDAP integration.
  • Created when first signing in using an OmniAuth provider if the allow_single_sign_on setting is present.
  • Created when first signing with Group SAML.
  • Automatically created by SCIM when the user is created in the identity provider.

Create users through the Rails console

WARNING: Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.

To create a user through the Rails console:

  1. Start a Rails console session.

  2. Run the following commands:

    u = User.new(username: 'test_user', email: 'test@example.com', name: 'Test User', password: 'password', password_confirmation: 'password')
    u.skip_confirmation! # Use it only if you wish user to be automatically confirmed. If skipped, user receives confirmation e-mail
    u.save!