Skip to content

Check group last owner before assigning default membership role

What does this MR do and why?

Describe in detail what your merge request does and why.

Fixes #367953 (closed)

SAML Group Sync does not check if a member is the last owner before assigning the default membership. In some cases this led to groups being without an owner. To avoid this the worker now checks for last owner before changing the member to default membership role.

The ideal solution is at a lower level so that this behavior is consistent across the platform. However, that is a rabbit hole at the moment. It will takes updates to potentially hundreds of specs. I created a follow-up issue for us to discuss the long-term solution in more depth. #368946

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Edited by Drew Blessing

Merge request reports