Note that for a preview/incremental analysis, the user also has to be granted the Browse permission on the project to analyzebe analyzed.
SonarQube 3.4 to 3.6.3
If a project cannot be accessed anonymously, the
sonar.password properties are required to run an analysis on this project. These properties have to be set to the credentials of a user having the User role on this project. You can set them either: