(Old) User Groups are loaded at 'Users and roles' within Project after removing
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
If the group is removed from the Jira user directory in an improper way (disconnecting from LDAP, user/group name changes on LDAP, changing naming on LDAP'etc), then removing the role of this group from Project Settings > User and roles fail. It does not produce any error but after refreshing the page, user/group roles will come back.
Environment
- Test on 8.20.2
- Probably valid for more versions
Diagnosis
Removing the group or user role from Project > Project Settings > User and roles do not produce any error but the roles will come back after refreshing the page.
- NoMoreExistingGroup has a role
2. Remove the role
3. Group seems to be removed
4. Refreshing the page will bring the role back
5. Verify that there is no group exists under User Management - Groups with the name "NoMoreExistingGroup"
Cause
While Jira tries to delete the group, it can not find the group in the user directories so it fails to remove it from project roles.
Solution
Add the missing group to the user directory temporarily, remove the roles from Project Settings > User and roles, and then remove the group from the user directory.