Join our Newsletter — 33% off our NHI Course
Home› FAQ› NHI Lifecycle Management› How should teams handle nested groups when SCIM…
NHI Lifecycle Management

How should teams handle nested groups when SCIM cannot expand them?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 7, 2026 Domain: NHI Lifecycle Management

Either flatten the membership for the app, assign each child group directly, or use a separate reconciliation process that computes transitive members from Microsoft Graph. The right choice depends on scale, ownership, and whether the application actually needs to preserve hierarchy. If it does, SCIM alone is not enough.

How to Treat Nested Groups When SCIM Cannot Expand Them

When scim cannot resolve nested membership, treat the hierarchy as a directory-design problem, not a SCIM limitation alone. The application must receive a membership model it can actually consume, so teams usually choose between flattening the group, assigning child groups directly, or reconciling transitive members elsewhere. The right answer depends on whether the app needs hierarchy or only effective access.

Three Practical Ways Teams Handle the Gap

The simplest pattern is to flatten membership before it reaches the application. That works well when the app only cares about effective access and does not need to preserve the parent-child structure. It reduces ambiguity, but it also means the consuming system is no longer authoritative for hierarchy, so any downstream review must operate on the flattened result.

A second pattern is to assign each child group directly to the app. This preserves more of the original group design while avoiding the expectation that SCIM will expand nested group for you. It is often the cleanest option when the parent group is mostly a governance construct and the application can tolerate multiple direct assignments.

The third pattern is to keep SCIM as the transport layer and run a separate reconciliation process that computes transitive members from Microsoft Graph. That approach is useful when hierarchy matters operationally, but it adds ownership and timing requirements. It also means the app is no longer relying on SCIM alone, so the reconciliation job becomes part of the access-control design.

Choosing the Right Model for the Application

The decision usually comes down to scale, ownership, and whether hierarchy is semantically meaningful to the application. If the app only needs entitlement outcomes, flattening is often enough. If operations or auditors need to see which child group granted access, direct assignment or a reconciliation layer is usually easier to explain and defend.

For teams using Microsoft Graph as the source of truth, the key question is whether the hierarchy is purely administrative or whether the parent-child relationship is part of the access policy itself. When the structure encodes business meaning, preserving that meaning outside SCIM can be justified. When it does not, simpler membership expansion usually creates fewer failure points.

Teams should also verify that the chosen approach matches lifecycle ownership. A flat model can be easier to provision and deprovision, but it may obscure where access came from. A transitive reconciliation model can preserve intent, but it requires reliable scheduling, clear exception handling, and a documented source of truth for membership changes.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 sets the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementNested-group handling depends on reliable membership and lifecycle control over access material.
AC-2 — Account ManagementThe question is about provisioning and deprovisioning access through group membership.
AC-6 — Least PrivilegeFlattening or expanding groups changes the effective privilege granted to users.
Recommendation — Define and govern membership expansion and revocation so access changes remain accurate. Map group assignment and reconciliation to account lifecycle ownership. Limit assigned membership to the minimum access needed after expansion.
ISO/IEC 27001:2022A.5.18 — Access rightsNested-group decisions directly affect how access rights are granted and reviewed.
A.8.2 — Privileged access rightsGroup expansion errors can overgrant access when privileged groups are nested.
Recommendation — Document how inherited access is granted, reviewed, and removed. Review inherited privileged access before relying on group nesting.

Practitioner Guidance

What to prioritize: Decide first whether the application needs effective membership or preserved hierarchy. That single choice determines whether you should flatten, assign child groups directly, or build reconciliation around Graph-derived transitive members.

What to verify: Confirm how access is removed when a user leaves a child group or when a child group is moved under a different parent. The control is only sound if membership changes propagate quickly enough for the application's risk profile.

Common mistake: Assuming SCIM group sync will behave like the directory. If nested structure matters, treat SCIM as a provisioning interface and explicitly design the expansion logic somewhere else.

Practitioner takeaway: The best implementation is the one that makes the access result unambiguous to the consuming application, while keeping the ownership of hierarchy, expansion, and reconciliation clearly defined.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 7, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org