Thanks for clarifying. You can set a project to private using the directions in the authorization section of our security documentation.
Private projects have two additional permissions:
Browse : Access a project; browse its measures, issues, and Security Hotspots; perform some issue edits (confirm/resolve/reopen, assignment, comment); comment on or change the user assigned to a Security Hotspot.
See Source Code : View the project’s source code.
To ensure these permissions can take effect, you need to set the project to private from its administration menu.
Project permissions are available from the project-level Administration menu: Project Settings > Permissions
You should see an option at the top of the page to make the project private and enable the additional permissions. I used a sample project as an example.
Let me know if you have any questions about that.