Can't share project with groups or subgroups that I have Owner permission, but didn't created them

I want to share a project with a another group or subgroups with the "Share with group" feature with an account that have the "owner" permission, but it can't. It doesn't find the groups.

I have another account that originally created the groups and has the owner permission (obviously) and that account can do it.

Is this a bug?

Steps to reproduce

  • Assuming you are a owner of a group, but not the "creator".
  1. Go to Project's Members option in https://gitlab.com/NAMESPACE/PROJECT/settings/members
  2. Click on "Share with group"
  3. Type anything in the "Select a group to share with" textfield
  4. No subgroup appears

What is the current bug behavior?

The "Share with group feature" doesn't find groups that I have the Owner permission but I'm not the creator of them.

What is the expected correct behavior?

The feature shows the groups that I'm the owner too.

Output of checks

This bug happens on GitLab.com

Edited by Collen