Adding users to project using terraform

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm: helm
  • what are you trying to achieve: Able to add users to projects using terraform
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

We are running Sonarqube version 9.9. We create sonarqube projects using a terraform provider. We are using terraform to add users to the project as well . However, the login name on sonarqube has random id suffix and terraform is failing as it’s unable to locate the users. I see there is a discussion on the same topic on this thread. Please let me know if this issue is fixed.

Thanks

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.9 → 2025.1.1 → 2025.2 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, no ‘fix’ for this has been done because it was a deliberate change.

 
HTH,
Ann