Cannot invite groups to project as inherited owner in source group
Summary
It appears that a user even with the Owner role in a project, cannot invite a group to be a member of that project if their membership in that group is via inheritance, and not a direct membership (of any role level).
Current behavior / Steps to replicate
An example is as below:
- On GitLab.com (
18.6.0-pre c2ed231f1fe), we have a user namedtest-user - The user is an
Ownerin the project atexample-group/example-subgroup/example-projectvia Direct Membership - The user is an
Ownerin the groupexample-group/example-subgroup/engineering-teamvia Direct Membership - The user is a
Reporterin the groupexample-group/securityvia Inheritance of the fact that theexample-group/example-subgroup/engineering-teamgroup is invited as aReporterto theexample-group/securitygroup. - When this user tries to invite the
example-group/securitygroup into theexample-group/example-subgroup/example-projectproject, that group will not appear in the drop-down list at all as a group that can be invited. However - if we invite thetest-useruser to be a Direct Member ofexample-group/securityat any role level rather than via the group invite ofexample-group/example-subgroup/engineering-teaminto that group - Then you'll see theexample-group/securitygroup in the drop-down list, and you can invite it to the project.
What is the desired behavior?
It's unclear if this is intended behavior or a bug, so we need to align on that first. The closest information I've seen in the documentation is:
Only direct members of the invited group get access to the shared group, not inherited, shared or subgroup members
However this is specific to sharing groups-to-groups, and not groups-to-projects.
Edited by 🤖 GitLab Bot 🤖