Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Username normalization breaks repo permissions #62676

@gabtorre

Description

@gabtorre
  • Sourcegraph version: 5.3.12303
  • Platform information:

We encountered an issue where usernames with suffixes are breaking permissions syncs with Bitbucket, as Bitbucket requires exact username matches. Sourcegraph normalizes usernames by adding a suffix if the username is in email format. This discrepancy affects setups where SCIM and SAML are involved and the username has to be set as an email.

Steps to reproduce:

  1. Set up SCIM and SAML with Okta.
  2. Create a user and sync permissions with Bitbucket.

Expected behavior:

Usernames should match exactly between Sourcegraph and Bitbucket without normalization issues.

Actual behavior:

Usernames in Sourcegraph get a suffix added during normalization, causing mismatches with Bitbucket usernames.

If you would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are no SLAs on issues like there are for support requests).

Metadata

Metadata

Assignees

Labels

bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.customerImportant issues reported or desired by a customer.team/sourceTickets under the purview of Source - the one Source to graph it all

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions