Skip to content

Fix Exporting members on a LDAP group sync enabled group given 403

What does this MR do and why?

Fix export members as csv when LDAP sync is enabled as it was broken since the permission admin_group_member is not permitted with LDAP sync to avoid data corruption during syncing.

Ref: #363580 (comment 1182754447)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  • Enable LDAP.
  • Create a group.
  • Enable Group sync on the created group.
  • Run Sync once.
  • Go to the Group members page and try to export members as CSV.
  • Ensure that the job for exporting members is enqueued and redirects back to members page

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #363580 (closed)

Edited by Aboobacker MK

Merge request reports