Description:
This control ensures that the default membership role for the GitLab top-level group is set to a restricted role (Minimal Access) or a read-only role (Guest or Reporter). The default membership role is the role automatically assigned to users who are added to the group through SAML single sign-on (SSO) or SCIM provisioning.
Note: This check requires a GitLab Premium or Ultimate plan. The setting it evaluates depends on a paid feature that isn’t available on the Free plan.On the Free plan, the setting doesn’t appear in the GitLab UI or API, so it can’t be configured. The check will show as Failed or Not applicable, regardless of how the rest of the group or project is set up.
Rationale:
If the default membership role is set too high, such as Developer, Maintainer, or Owner, every newly provisioned user automatically receives the ability to push code, change settings, or administer projects across the group. Setting the default role to Minimal Access, Guest, or Reporter enforces least privilege, ensuring that higher access is granted explicitly through SAML group links or by a group Owner.
Impact:
Newly provisioned users receive only restricted or read-only access to the group by default.
Users who need higher access must be granted it explicitly through SAML group links or by a group Owner.
Existing group members are not affected by changing this setting.
Enforces least privilege and reduces the risk of unauthorized changes.
Default Value:
Guest. Group Owners can change the default membership role in the top-level group’s SAML SSO settings. This setting is available for top-level groups on GitLab.com with the Premium or Ultimate tier.
Remediation:
Test Plan:
Sign in to GitLab at https://gitlab.com.
Navigate to the target group.
Select Settings → SAML SSO.
Under Default membership role, verify that the selected role is Minimal Access, Guest, or Reporter.
If the default membership role is set to Developer, Maintainer, or Owner, follow the Implementation Steps to remediate the issue and repeat the test.
Implementation Steps:
Sign in to GitLab at https://gitlab.com.
Navigate to the target group.
Select Settings → SAML SSO.
Under Default membership role, select Minimal Access (recommended), Guest, or Reporter, as required by organizational policy.
Click Save changes.
Backout Plan:
Sign in to GitLab with the Owner role for the top-level group.
On the left sidebar, select Search or go to and find the top-level group.
Select Settings → SAML SSO.
Under Default membership role, select the previous role.
Click Save changes.
Verify that newly provisioned users receive the expected role according to the updated configuration.
References: