# Github Group Sync with Sonar Groups

**URL:** <https://community.sonarsource.com/t/github-group-sync-with-sonar-groups/110445>\
**Category:** SonarQube Server / Community Build\
**Tags:** git, sonarqube, github\
**Created:** [March 5, 2024, 1:19am UTC](https://community.sonarsource.com/t/github-group-sync-with-sonar-groups/110445 "2024-03-05T01:19:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Saxena](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sameer_saxena/32/55004_2.png) [@Sameer\_Saxena](https://community.sonarsource.com/u/Sameer_Saxena)\
**Post date:** [March 5, 2024, 1:19am UTC](https://community.sonarsource.com/t/github-group-sync-with-sonar-groups/110445/1 "2024-03-05T01:19:53Z")

</div>

Must-share information (formatted with [Markdown](https://commonmark.org/help/)):

- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)  
Sonarqube Enterprise Edition (version 9.9 build 65466)

- how is SonarQube deployed: zip, Docker, Helm  
installed using Zip

- what are you trying to achieve  
I was able to achieve Sonarqube authentication with Github with my org called “OrgA”. Now I am trying to synchronize teams as groups option to (for each team they belong to user will be associated to group named Org./Team)

I was unable to create this sync

- what have you tried so far to achieve this  
I have a team called TeamA, I created a group called OrgA/TeamA to see if the users will get automatically sync to the group in sonarqube but it didnt happen  
I also tried creating group called just TeamA if that works but that is also not working

All the users from github that authenticate are automatically added to Sonar\_users group  
Could someone help me to fix this issue

Also explain will this work if i can keep on adding more Github Teams as groups in Sonarqube in future "

Thanks  
**Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!**

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [March 6, 2024, 9:39am UTC](https://community.sonarsource.com/t/github-group-sync-with-sonar-groups/110445/2 "2024-03-06T09:39:38Z")

</div>

Hey there.

Did you enable [**Synchronize teams as groups**](https://docs.sonarsource.com/sonarqube/9.9/instance-administration/authentication/github/#github-group-synchronization) in the settings?

---

<div class="post-metadata">

**Author:** ![Sameer\_Saxena](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sameer_saxena/32/55004_2.png) [@Sameer\_Saxena](https://community.sonarsource.com/u/Sameer_Saxena)\
**Post date:** [March 22, 2024, 6:40am UTC](https://community.sonarsource.com/t/github-group-sync-with-sonar-groups/110445/3 "2024-03-22T06:40:33Z")

</div>

I did looks like the issue comes because you cannot sync github teams with upper cases  
the groups inside the sonarqube should always be lower cases

so org/group in lower cases worked for me

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [March 25, 2024, 4:20pm UTC](https://community.sonarsource.com/t/github-group-sync-with-sonar-groups/110445/4 "2024-03-25T16:20:34Z")

</div>

Hey there.

Thanks for the update.

I wonder if this isn’t something we should improve on our side (either in docs or in the product functionality).

Were your groups represented in GitHub with mixed/upper case? Or were you using a different casing between SonarQube and GitHub and what fixed it was matching what’s in GitHub?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/78532_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [April 1, 2024, 4:20pm UTC](https://community.sonarsource.com/t/github-group-sync-with-sonar-groups/110445/5 "2024-04-01T16:20:58Z")

</div>

Closed on April 1, 2024, 4:20pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
