We use SonarQube “Version 6.7.5 (build 38563)”.
For the longest time, most of our SonarQube projects have been public within the enterprise. We are now attempting to make them private by default, with permissions settings for each user who needs access. We set this on the “project_roles” page, setting the project to private, and adding entries for each required user. We are presently doing this manually for each project.
I maintain an automation system that uses the REST api to create particular projects that are associated with existing projects. These are based on pull request branches. I am specifically not using “new-style branches”, and that won’t be an option for now. In the scripting code, I copy some information from the base project, like the quality gate and quality profiles. It appears that I’m going to need to copy this permissions information the same way.
I’ve browsed through the REST api automated documentation, and I don’t see any operation that contains this information. How can I get this from the REST api and set it in a new project? I’m starting to wonder whether this isn’t supported in the version we’re using, and will require a system upgrade.