# Ensure two-factor authentication is enforced for group members

- Source: https://support.icompaas.com/support/solutions/articles/a_1789073191070249-ensure-two-factor-authentication-is-enforced-for-group-members
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Version Control System (VCS)](https://support.icompaas.com/support/solutions/c_1781179095087930) › [GitLab](https://support.icompaas.com/support/solutions/folders/f_178117912544158)
- Last updated: 2026-10-27
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

Description:

This check verifies that a GitLab group enforces two-factor authentication (2FA) for all its members. When enforced, members must have 2FA enabled on their account to retain access to the group and its projects.

  

Rationale:

Two-factor authentication adds a critical second layer of verification beyond a password, significantly reducing the risk of unauthorized access resulting from compromised, weak, or reused credentials. Enforcing 2FA at the group level ensures this protection applies consistently to every member, rather than relying on individual users to opt in voluntarily.

  

Impact:

-   Require members without 2FA enabled to configure it before continuing to access group resources.
    
-   Temporarily disrupt access for members who have not yet set up 2FA, until they complete configuration.
    
-   Significantly reduce the risk of account takeover due to compromised passwords.
    
-   Improve overall security posture and compliance with organizational access control policies.
    

  

Default Value:

Disabled By default, GitLab groups do not require members to have two-factor authentication enabled. Default setting: require\_two\_factor\_authentication: false

  

Pre-Requisites:

-   Owner access to the group
    
-   An existing GitLab group
    

  

Test Plan:

1.  Sign in to GitLab at [https://gitlab.com](https://gitlab.com/).
    
2.  Navigate to the target group.
    
3.  Select Settings → General.
    
4.  Expand the Permissions and group features section.
    
5.  Locate the "Require all users in this group to set up two-factor authentication" option.
    
6.  Verify that this option is enabled.
    

  

Implementation Steps:

1.  Sign in to GitLab at [https://gitlab.com](https://gitlab.com/).
    
2.  Navigate to the target group.
    

3.  Select Settings → General.
    

4.  Expand the Permissions and group features section.
    
5.  Check "Require all users in this group to set up two-factor authentication".
    
6.  Optionally, configure the grace period (in hours) before enforcement takes effect for members without 2FA already enabled.
    

7.  Save the changes.
    

  

Backout Plan:

1.  Sign in to GitLab at [https://gitlab.com](https://gitlab.com/).
    
2.  Navigate to Settings → General.
    
3.  Expand the Permissions and group features section.
    
4.  Uncheck "Require all users in this group to set up two-factor authentication".
    

5.  Save the changes.
    
6.  Confirm that group and project operations function as expected after the rollback.
    

  

Reference:

-   [https://docs.gitlab.com/ee/security/two\_factor\_authentication.html](https://support.icompaas.com/home/icsys-026/support/support_web/%5Bobject%20Object%5D)
    
-   [https://docs.gitlab.com/ee/user/group/manage.html](https://support.icompaas.com/home/icsys-026/support/support_web/%5Bobject%20Object%5D)
    
-   [https://docs.gitlab.com/ee/api/groups.html](https://support.icompaas.com/home/icsys-026/support/support_web/%5Bobject%20Object%5D)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
