Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

User renamed in crowd. Can not log in to sonarqube #26

Open
gumbo2k opened this issue Jul 2, 2019 · 1 comment
Open

User renamed in crowd. Can not log in to sonarqube #26

gumbo2k opened this issue Jul 2, 2019 · 1 comment

Comments

@gumbo2k
Copy link

gumbo2k commented Jul 2, 2019

Hi,
we just renamed a bunch of users in crowd. (Not just changed the display name or Email, but changed the login name)
The atlassian tools picked up on the rename without a hitch.
Sonarqube apparently did not. (At least I can still see the old names in Administration > Security > Users, and the user can no longer login.)
Question1: Is this a bug or a missing feature?
Question2: What is the workaround? (stop sonarqube; change users.login in the database; start sonarqube ?)

Thanks

@ogtool
Copy link

ogtool commented Nov 22, 2019

The Atlassian products handle renames by storing all content "owned" by you under the first username you logged in to the system with. There's then a table (app_user in Jira) that maps from your original username to your current username. If your Unique User Attribute in Crowd is configured to pull from an objectGUID or similar in AD/LDAP, then changing a user in your source directory will keep the same user in Crowd, and on the next application sync to Crowd, a re-name process happens where the app_user (or equivalent) table is updated to your new username and the cwd_user table will have your username updated too (which links to the Crowd directoryID:userID record).

As there's no "sync" process for the SonarQube connector, the system is effectively just seeing a new user/username - it's unaware of any part of the rename event, so makes a new user.

CCM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants