Skip to content

Show SAML badges for projects under nested subgroups for direct members

Related to #421482 (closed)

What does this MR do and why?

This MR addresses the issue of the SAML badge not displaying on a project level (projects in subgroups) for direct members. The issue occurs when an existing group_saml user in a project (with a SAML badge), is overridden to a different role.

Screenshots or screen recordings

Group Hierarchy Project In SubGroup
SAML_Tanuki_Group SAML_Tanuki_SubGroup_Project

How to set up and validate locally

Requires an EE license to test on GDK since group-saml is only available in the premium/ultimate tiers on SASS.

  1. Set up SimpleSAML with GDK:

  2. Create test users with SimpleSAML:

    • Sign in using SSO to Gitlab as test users on an incognito browser session.
  3. Create nested subgroups and projects:

    • Set up a hierarchy like group -> subgroup -> project.
    • Invite users to the parent group.
    • Override a user to a higher role in the nested project.
    • Verify that the SAML badge still shows in the project-level.

MR acceptance checklist

Please 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 Hakeem Abdul-Razak

Merge request reports

Loading