Reactivate deactivated user


(Carles Perez) #1

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube Version 7.1 (build 11001)

  • what are you trying to achieve
    Reactivate a deactivated User

  • what have you tried so far to achieve this
    The user has been set with “active=true” flag in the database

(Nicolas Bontoux) #2


One thing for sure is that you should not tamper with the database directly, you’re at risk of corrupting your dataset. Once a user is deactivated, I believe the most efficient way to get it back on track is to simply recreate it with the same login.

(Carles Perez) #3

Thanks Nicolas. In case is a user related LDAP, is it possible to recreate it?

(Nicolas Bontoux) #4

Hi Carles,

Did you get the user to just try logging in ? From recent tests I think this should just work (when you leverage LDAP integration then user management is fully delegated to LDAP server).

(Carles Perez) #5

Hi Nicolas,
Yes, we tried. Currently the user is available to add it into the groups, but it isn’t showed in the general user list. I guess it isn’t in the default group “sonar-users” (and I can’t manually add it there). What do you think? Thanks

(Nicolas Bontoux) #6

That sounds like a glitch. I suggest checking if you can find the user via WebAPI, and ultimately if the inconsistency remains then it might be the symptom of a data problem. In which case:

(Carles Perez) #7

Thanks Nicolas! Do you recommend to delete the folder es5 or just its content?

(Nicolas Bontoux) #8

Either way should be fine!