# Adding projects to existing organization - no repositories found?

**URL:** <https://community.sonarsource.com/t/adding-projects-to-existing-organization-no-repositories-found/64655>\
**Category:** SonarQube Cloud\
**Tags:** azuredevops-services\
**Created:** [June 10, 2022, 8:48pm UTC](https://community.sonarsource.com/t/adding-projects-to-existing-organization-no-repositories-found/64655 "2022-06-10T20:48:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![herlihyboy](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@herlihyboy](https://community.sonarsource.com/u/herlihyboy)\
**Post date:** [June 10, 2022, 8:48pm UTC](https://community.sonarsource.com/t/adding-projects-to-existing-organization-no-repositories-found/64655/1 "2022-06-10T20:48:36Z")

</div>

Template for a good new topic, formatted with [Markdown](https://commonmark.org/help/):

- ALM used: Azure DevOps
- CI system used Azure DevOps
- Scanner command used when applicable NA
- Languages of the repository: C#
- Error observed “No repositories found for this organization”
- Steps to reproduce

I have one repo showing up properly for my organization and the scans are working as expected. I recently configured it to use a PAT generated by a service account. I’d like to add more repos, but see the error message when I scan for more repos in SonarCloud. I read another post that said the service account needed to have elevated permissions but the thread didn’t elaborate as to what permissions are needed. Please let me know and I will add them and reattempt the scan.

---

<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:** [June 13, 2022, 4:58pm UTC](https://community.sonarsource.com/t/adding-projects-to-existing-organization-no-repositories-found/64655/2 "2022-06-13T16:58:37Z")

</div>

Hi,

Welcome to the community!

According to [the docs](https://docs.sonarcloud.io/getting-started/azure-devops/#set-up-your-organization) the account needs read/write on code.

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![herlihyboy](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@herlihyboy](https://community.sonarsource.com/u/herlihyboy)\
**Post date:** [June 13, 2022, 6:15pm UTC](https://community.sonarsource.com/t/adding-projects-to-existing-organization-no-repositories-found/64655/3 "2022-06-13T18:15:27Z")

</div>

Yes, I did that already and that is why the scans are working for one repo. We created the PAT with read/write on code. If we hadn’t, our one scan would not work (it is). However, when I click “Analyze Projects” and it scans for more repos, using the same organization-level PAT, I see “no repositories found for this organization”. There are more repos in our Azure DevOps organization that should appear as we have more repos in the same team project in Azure DevOps as well as multiple repos across other team projects. It’s not detecting and displaying our additional repos.

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [June 24, 2022, 1:54pm UTC](https://community.sonarsource.com/t/adding-projects-to-existing-organization-no-repositories-found/64655/11 "2022-06-24T13:54:23Z")

</div>

Hi @herlihyboy ,

> Yes, I did that already and that is why the scans are working for one repo. We created the PAT with read/write on code. If we hadn’t, our one scan would not work (it is).

This is not true. This is the SonarCloud token that allows you to analyze your code, not the Azure PAT.

Can you check in the settings of your Personal Access Token that you see the organization you want in the dropdown like this ?

![PATsettings](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/8/9/8958bee87697a0a6666a717b9e7b19b0df7f4d66.png)

Thanks in advance.  
Mickaël

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [July 4, 2022, 7:40am UTC](https://community.sonarsource.com/t/adding-projects-to-existing-organization-no-repositories-found/64655/12 "2022-07-04T07:40:46Z")

</div>

Hi @herlihyboy any update ? Otherwise i will close this topic. Thanks !

---

<div class="post-metadata">

**Author:** ![mickaelcaro](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mickaelcaro/32/4147_2.png) [@mickaelcaro](https://community.sonarsource.com/u/mickaelcaro)\
**Post date:** [July 11, 2022, 7:42am UTC](https://community.sonarsource.com/t/adding-projects-to-existing-organization-no-repositories-found/64655/13 "2022-07-11T07:42:59Z")

</div>

Closed on July 11, 2022, 7:42am UTC


