- To analyze the master of a project, you just need 'Execute Analysis' permission on the project
- To analyze a branch of a project, you need 'Execute Analysis' and 'Browse on the project'
Indeed, analyzing of a branch currently makes a call to api/project_branches/list as well as a call to api/settings/values on the project. These 2 calls require the 'Browse' permission.
To make it simple and consistent, it should be possible to have only the 'Execute Analysis' permission to call api/project_branches/list and api/settings/values on a component .
The WS documentation needs to be updated accordingly.