Update member's user_group_member_roles on SAML group sync

What does this MR do and why?

Currently, when SAML groups are synced, the users' user_group_member_roles records are only correctly updated when they're not yet a member of the group. However, when existing memberships are updated during sync, the user_group_member_roles records are not updated.

This MR updates the syncing service to correctly update the users' user_group_member_roles records in all scenarios, including when their existing memberships are updated during SAML group synchronization.

References

Bug: some user_group_member_roles have no corre... (#568186 - closed)

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eugie Limpin

Merge request reports

Loading