> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-profiles/associating-a-quality-profile-with-projects.md).

# Associating with projects

By default, a SonarQube Cloud project uses each language’s default quality profile. You can also explicitly assign a general or language-specific profile to projects.

As a Quality Profile Administrator, you can explicitly associate a quality profile with projects.

As a project administrator, you can associate your project with quality profiles. See the [Quality profile](/sonarqube-cloud/managing-your-projects/project-analysis/quality-profile-association.md) page.

For a given language, the most recent assignment applies, whether it comes from a general profile or a language-specific profile. See [Understanding quality profiles](/sonarqube-cloud/standards/managing-quality-profiles/understanding-quality-profiles.md#profile-types) for more information.

## Assigning a general profile to projects <a href="#assigning-a-profile-for-all-languages" id="assigning-a-profile-for-all-languages"></a>

1. Go to *Your organization* > **Policies** > **Quality profiles**. See [Retrieving your organizations](/sonarqube-cloud/getting-started/viewing-organizations.md) to access your organization.
2. On the **General** tab, locate the profile in the **In use** or **All** tab.
3. In the action menu of the profile, select **Assign projects**.

<figure><img src="https://2223713658-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB4UT2GNiZKjtxFtcFAL7%2Fuploads%2Fgit-blob-02ebc490f666b8fe105beae5eac8d3ef8022933f%2Fsonarqube-cloud-quality-general-assign-projects.png?alt=media" alt="The General tab with All selected and the action menu of the Sonar way core card open, with Assign projects selected"><figcaption></figcaption></figure>

4. When the dialog opens with the list of your organization’s projects, select the checkbox of each project you want to assign the profile to. Use the **Search** field to filter the list of projects. The profile is assigned for all languages in the selected projects.
5. Select **Assign**.

The **Assign projects** dialog only adds assignments. It does not list the projects the profile is already assigned to. To remove an assignment, change the profile on the project’s **Quality profiles** page. See [Quality profile](/sonarqube-cloud/managing-your-projects/project-analysis/quality-profile-association.md).

## Associating a language-specific profile with projects <a href="#associating-a-language-specific-profile" id="associating-a-language-specific-profile"></a>

To explicitly associate a language-specific quality profile with projects, or change the projects associated with it:

1. Go to *Your organization* > **Policies** > **Quality profiles** and, on the **Language-specific** tab, retrieve your quality profile. See [Retrieving your organizations](/sonarqube-cloud/getting-started/viewing-organizations.md) to access your organization.
2. In the **Projects** section of the quality profile, select **Change projects**. The **Projects** dialog opens.

<figure><img src="https://2223713658-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB4UT2GNiZKjtxFtcFAL7%2Fuploads%2Fgit-blob-d4d2166d5e7bf711182a21eaf75a974936e2334e%2Fquality-profile-change-projects.png?alt=media" alt="Change projects for a quality profile"><figcaption></figcaption></figure>

3. Select the tab you want to use to filter the list of projects:
   1. The **With** tab shows the projects associated with this quality profile. Use this tab to remove associations.
   2. The **Without** tab shows the projects not associated with this quality profile. Use this tab to associate projects.
   3. The **All** tab shows all projects. Use this tab to associate all projects or remove all associations.
4. Use the Search field to filter the list of projects.
5. Select or unselect a project to associate the project or remove the association, respectively. In the **All** tab, select **Bulk Change** to select or unselect all projects.
6. If you’re in the **With** or **Without** tabs, select **Reload** to refresh the dialog with your changes.
7. Select **Close**.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Understanding quality profiles](/sonarqube-cloud/standards/managing-quality-profiles/understanding-quality-profiles.md)
* [Viewing quality profiles](/sonarqube-cloud/standards/managing-quality-profiles/viewing-quality-profiles.md)
* [Creating a quality profile](/sonarqube-cloud/standards/managing-quality-profiles/creating-a-quality-profile.md)
* [Editing a quality profile](/sonarqube-cloud/standards/managing-quality-profiles/editing-a-custom-quality-profile.md)
* [Changing default quality profile](/sonarqube-cloud/standards/managing-quality-profiles/changing-default-quality-profile.md)
* [Maintaining quality profiles](/sonarqube-cloud/standards/managing-quality-profiles/maintaining-your-custom-quality-profiles.md)
* [Granting permissions to users](/sonarqube-cloud/standards/managing-quality-profiles/authorizing-other-users-to-manage-quality-profile.md)
* [Quality profile](/sonarqube-cloud/managing-your-projects/project-analysis/quality-profile-association.md)
* [Quality profiles for agentic AI](/sonarqube-cloud/standards/ai-code-assurance/quality-profiles-for-agentic-ai.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-profiles/associating-a-quality-profile-with-projects.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
