After GitLabv15.1, specific SAML Group Links scenarios result in the last owner of a group being removed

Summary

In certain situations, after configuring SAML Group Links, a group can end up with no owners.

The full conversation in this slack conversation.

Steps to reproduce

I am not entirely sure how to replicate the scenario but it involves configuring Group Links and then changing or removing them.

What is the current bug behavior?

The last owner of a group is removed.

What is the expected correct behavior?

The last owner of a group should not be removed.

Possible fixes

Related ZD tickets:

Possibly related issue

#367510 (closed)