Sanitize usernames for synching

Created on 20 September 2024, 7 months ago

Problem/Motivation

Not all usernames from Drupal can be used for creating users in GitLab. Here is the error message when an invalid username is being used:

Gitlab\Exception\ValidationFailedException: "username" can only include non-accented letters, digits, '_', '-' and '.'.

It must not start with '-', end in '.', '.git', or '.atom'., "username" can contain only letters, digits, '_', '-' and '.'.

Cannot start with '-' or end in '.', '.git' or '.atom'.

Also, the username admin is not permitted.

Proposed resolution

We need to sanitize usernames before sync.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024