We want to reduce the permissions of the analysis user to a minimum, but we need to grant Browse permission to be able to wait for the Quality Gate.
Currently it is not possible to give the user only analysis permissions if you want to wait for the Quality Gate in an CI build. The user still needs to have browse permissions, which includes the possibility of manipulating issues assignments and even worse it provides a s list of existing project with meta information. Therefore it would be a nice improvement, if the analysis scope also would cover the necessary access for waitForQualityGate.
see Allow user with analyse permission to fetch quality gate status for the initial discussion.