# Sonarqube permission issue

**URL:** <https://community.sonarsource.com/t/sonarqube-permission-issue/63818>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [May 25, 2022, 1:57am UTC](https://community.sonarsource.com/t/sonarqube-permission-issue/63818 "2022-05-25T01:57:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carrieyang](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@carrieyang](https://community.sonarsource.com/u/carrieyang)\
**Post date:** [May 25, 2022, 1:57am UTC](https://community.sonarsource.com/t/sonarqube-permission-issue/63818/1 "2022-05-25T01:57:53Z")

</div>

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

- SonarQube Enterprise Edition 9.4 (build 54424)  
Permission Description:

1. Use the project key mode to automatically apply permission templates
2. The permission template grants permissions to groups
3. When users join groups, they can access related projects.  
Question:  
When the user access the project report URL（eg：[http://sonar.domain.com:9000/dashboard?id=AG.GYT-ClusterService](http://sonar.domain.com:9000/dashboard?id=AG.GYT-ClusterService) ）, prompt the user has no permission; When the administrator views a group member, the member is automatically deleted.

 ![图片](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/e/5/e5b59715f1979c39cd5433cd450cfbe167d9c613.png)

---

<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:** [May 26, 2022, 2:57pm UTC](https://community.sonarsource.com/t/sonarqube-permission-issue/63818/2 "2022-05-26T14:57:59Z")

</div>

Hi,

Welcome to the community!

I guess you’re looking at the audit logs?

What I see in this log is not the user being inadvertently deleted by the admin, but the user being _removed_ from a group on login.

It looks like you’ve got group synchronization enabled. So at each login, the user’s group’s will be retrieved from the IDP, and the user’s group membership in SonarQube will be synchronized with the user’s group membership in the IDP. That means adding the user to IDP groups she wasn’t already in in SonarQube, and _removing her_ from SonarQube groups she doesn’t have IDP membership in.

It sounds like you’ve manually added users to groups in SonarQube that they’re not members of in the IDP.

Does that make sense?

&nbsp;  
HTH,  
Ann
