Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-21352

Removing group from "Default Group Memberships" field is not updating LOCAL column value in CWD_GROUP table

      Issue Summary

      When adding an external user directory with Default Group Memberships , the value in LOCAL column becomes 1 in cwd_group table however it doesn't reset back to 0 if we remove the group from the field later and save the configuration.

      Steps to Reproduce

      1. Add an external user directory with Default Group Memberships
      2. Run a sync
      3. Check database and the value of LOCAL column becomes 1 in cwd_group table for that specific group
      4. Go back to the directory settings and remove that particular group from the Default Group Memberships field
      5. Check database and the value of LOCAL column is still 1 in cwd_group table

      Expected Results

      LOCAL column value should be reset back to 0 in cwd_group table if it's been removed from Default Group Memberships

      Actual Results

      value of LOCAL column is still 1 in cwd_group table

      This will cause a situation to skip certain groups being synced if the names are matching in the LDAP and the local directory. Since we do not have any restrictions in having the same group names(at least not documented) this can create issues.

      2022-05-12 06:22:06,043+0000 Caesium-1-4 INFO ServiceRunner     [c.a.c.d.synchronisation.cache.DefaultGroupActionStrategy] group [ confluence-users ] in directory [ 10200 ] matches local group of same name, skipping
      

      Workaround

      The workaround is to update the DB value manually and set it to 0

      Please note that this would result in remote ldap users losing membership of the group. If this group is used for application access, they will lose application access.

            [JSWSERVER-21352] Removing group from "Default Group Memberships" field is not updating LOCAL column value in CWD_GROUP table

            There are no comments yet on this issue.

              Unassigned Unassigned
              4a39baba09d4 Nikhil Janardhanan
              Affected customers:
              6 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated: