NSE7 Advanced VPN and Zero Trust Practice Question
A FortiGate is configured as a SAML service provider (SP) for SSO. Users authenticate via an external IdP. After successful authentication, the FortiGate should enforce a firewall policy based on the user's group membership. Which FortiGate setting must be enabled to receive group information from the IdP?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure the 'user-group' attribute in the SAML SP settings
To receive group membership information from the IdP, the FortiGate SAML SP must be configured with the correct SAML attribute that carries the user group data. This is done by setting the 'user-group' attribute (or equivalent) in the SAML SP configuration. When the IdP sends a SAML assertion containing that attribute, FortiGate maps it to the user's group membership, enabling group-based firewall policies. Option D is correct because it explicitly references configuring the 'user-group' attribute in the SAML SP settings.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable 'Require IdP Certificate Validation'
Why it's wrong here
This validates the IdP's signature, not related to group info.
- ✗
Create a separate firewall policy for each user
Why it's wrong here
Creating separate firewall policies per user fails because the FortiGate must dynamically receive group membership from the IdP via SAML assertions to map users to policies, not statically assign policies per individual. This approach is tempting because per-user policies are valid for granular control when group information is unavailable or when each user requires unique access rules, such as in a small office without an IdP.
- ✗
Enable 'Auto-Provision Users' on FortiGate
Why it's wrong here
Auto-provisioning creates user accounts, but group info is still needed from SAML.
- ✓
Configure the 'user-group' attribute in the SAML SP settings
Why this is correct
FortiGate allows mapping of group membership from a SAML attribute. The administrator must specify which attribute (e.g., group) carries the group information.
Go deeper
Related to this question
About these practice questions
One of 940 original NSE7 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on NSE7
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A FortiGate is configured as a SAML service provider (SP) for ZTNA. Users authenticate via an external IdP. After authentication, users are not able to access applications even though the ZTNA proxy rule lists them. What should the administrator check FIRST?
medium- A.The FortiClient EMS license is invalid
- B.The application server is unreachable from FortiGate
- ✓ C.The ZTNA proxy rule's allowed group does not include the user's group
- D.The SAML IdP certificate is expired
Why C: When using SAML, the FortiGate needs to map the SAML attributes (e.g., username) to a user group. If the user is not in the correct group, access will be denied.
Variation 2. A FortiGate is configured as a SAML service provider (SP) for user authentication. Users report they are redirected to the identity provider (IdP) for authentication, but after successful login, they are not allowed access to the requested resource. What is the MOST likely cause?
medium- A.The FortiGate is configured as an IdP instead of SP
- B.SAML single logout is enabled and causing session termination
- C.The IdP certificate is not trusted by the FortiGate
- ✓ D.The SAML user group is not configured with the correct IdP attribute mapping
Why D: After SAML authentication, the FortiGate must have a matching user group and firewall policy that allows traffic from authenticated users. If the IdP sends the correct attributes but the FortiGate does not have a group mapping or policy, access will be denied.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This NSE7 practice question is part of Courseiva's free Fortinet certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the NSE7 exam.