Setting user permissions

This page explains your SonarQube Cloud project permission options, how to update or reset permissions, and information about changing a project’s visibility setting.

As a project admin, you can update your project’s permissions manually or, with a Team or Enterprise plan organization, reset the default permissions and apply a permission template defined by the organization administrator.

If you are an organization admin, you can:

Permissions related to a project

Permission Type

Description

Browse Project

Applies only to private projects (Anyone, including anonymous users, can view the public projects.).

Can view the project.

See Source Code

Applies only to private projects.

Can view the source code (via API and web view) provided the Browse project permission is also granted.

Note: Anonymous and unauthorized users are prevented from easily downloading public projects’ source code via API and web views.

Administer Issues

Can perform the following actions:

• Accept an issue

• Mark an issue as False positive

Administer Security Hotspots

Can change the status of a security hotspot. For private projects, the Browse project permission must also be granted.

Execute Analysis on project

Can start an analysis on the project. This includes the ability to get all settings required to perform an analysis (including secured settings like passwords) and to push analysis results to the SonarQube Cloud server.

Administer project

Can perform the following actions:

• Delete a project.

• Change the project settings including project-level permissions.

• Configure various project functions, such as PDF reporting, snapshots, and webhooks.

For private projects, the Browse project permission must also be granted.

Updating or resetting the permissions of your project

To update the permissions of your project:

  1. Retrieve your project. See Retrieving projects for more details.

  2. In the left sidebar, select Administration > Permissions. The Permissions page opens.

  3. To apply a permission template (if applicable):

    1. Select the Apply Permission Template button in the top right corner of the page. The Apply Permission Template dialog opens.

    2. Select the template you want to apply and select the Apply button.

  4. To update the permissions manually:

    1. Navigate to the bottom of the page to view the list of users and groups.

    2. Select the check box to change the permissions.

Changing the project’s visibility

The project’s visibility may be:

  • Public: Anyone, including anonymous users, can view public projects. A public project may be part of any organization.

  • Or private: Only authorized users, who are members of the organization, can view a private project. By default, the visibility of newly created projects is set to private on Free, Team and Enterprise plans.

If you’re a project admin, you can change your project’s visibility.

To change the visibility of your project:

  1. Retrieve your project. See Retrieving projects for more details.

  2. In the left sidebar, select Administration > Permissions. The Permissions page opens.

  3. In the Project visibility section, select the Public or Private checkbox. (You can also upgrade your organization from this section.) The Turn to Private / Public dialog opens.

  4. Confirm the change.

Last updated

Was this helpful?