# Cannot rename project after creation

**URL:** <https://community.sonarsource.com/t/cannot-rename-project-after-creation/151388>\
**Category:** SonarQube Server / Community Build\
**Created:** [October 27, 2025, 11:36am UTC](https://community.sonarsource.com/t/cannot-rename-project-after-creation/151388 "2025-10-27T11:36:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexobelfius](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexobelfius/32/73173_2.png) [@alexobelfius](https://community.sonarsource.com/u/alexobelfius)\
**Post date:** [October 27, 2025, 11:36am UTC](https://community.sonarsource.com/t/cannot-rename-project-after-creation/151388/1 "2025-10-27T11:36:45Z")

</div>

We are running Enterprise Edition v2025.3.1 (109879) in Azure K8S.

Scanning is done via Azure Pipelines using SonarQube task v7.

```auto
          - task: SonarQubePrepare@7
            inputs:
              SonarQube: sc-sonarqube-${{parameters.sonarqubeServer}}
              scannerMode: cli
              configMode: file

```

Python project set using the sonar-project.properties file:

```auto
#Project details
sonar.projectName=Old project name
sonar.projectKey=the.project.key

..

```

I’m trying to **rename** the project (change the project friendly / display name) and this is not working.

(I’m **not** trying to change the **projectKey** ).

I have reviewed and attempted found articles on this community with no luck.

What have I done so far:

- Changed the sonar.projectName in the properties file, pushed, build - the name remain the same.

- Merged to master (default branch) - no change

- Added following snippet to the pipeline - no change

- Deleted the project entirely - pushed and the new projectName was used

- Reviewed the REST API - seems it’s possible to set the name only at project creation time. After creation it’s only possible to update the projectKey.

So, how can I change the project display name, without project re-creation and loss of the history?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [October 28, 2025, 12:09pm UTC](https://community.sonarsource.com/t/cannot-rename-project-after-creation/151388/2 "2025-10-28T12:09:46Z")

</div>

Hi,

> [@alexobelfius](#):
>
> Changed the sonar.projectName in the properties file, pushed, build - the name remain the same.

Did you do this on `master`? It only works there. But this is how you do it.

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![alexobelfius](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/alexobelfius/32/73173_2.png) [@alexobelfius](https://community.sonarsource.com/u/alexobelfius)\
**Post date:** [October 28, 2025, 2:46pm UTC](https://community.sonarsource.com/t/cannot-rename-project-after-creation/151388/3 "2025-10-28T14:46:17Z")

</div>

Hello Ann,

Thanks for rapid feedback.

I can confirm that once the analysis is done from the master branch, projectName field is taken into account, resulting in the project rename.

KR, Alex
