Agen.co enables organizations to securely expose enterprise context to internal agents, copilots, and AI workflows through an identity-aware control layer that governs access, reduces risk, and centralizes oversight.
A low-code CIAM platform for managing customer identity as you scale.
Empower your workforce with secure agents
In B2B SaaS, an account hierarchy is a structured system that represents the relationships between organizations, sub-accounts, and users within a multi-tenant platform. It defines parent-child relationships between accounts — for example, an enterprise customer’s headquarters account and its regional or departmental sub-accounts — so permissions, billing, and data can be scoped correctly across the hierarchy. This structure can involve simple parent-and-child relationships, or extend across multiple nested layers depending on how complex the organization is.Note: this is different from the CRM/sales sense of “account hierarchy” — such as Salesforce’s structure for customer account relationships. See the Salesforce example further down this page for that context.
Account hierarchy is not limited to people and positions in an organization. It can also represent the relationships between different departments, projects, or even different companies under the umbrella of a larger corporation. It is a versatile concept that can be adapted to fit the specific needs and structure of many use cases.
Account hierarchies are often used in software solutions to manage the use of software within an organization, or to enable sales or support activity for other organizations. For example:
This is part of a series of articles about identity and access management.
Source: Frontegg’s own documentation distinguishes hierarchies (“managing relationships and dependencies within a single tenant”) from multi-tenancy (“serving multiple tenants… with isolated data and configurations”). See Frontegg’s account hierarchy documentation for details.
In a B2B SaaS platform, account hierarchy matters because customers rarely map to a single flat account. Enterprise customers, resellers, and managed service providers often need to model their own internal structure — regional offices, business units, or franchise locations — inside your product. Account hierarchy gives the platform a way to represent that structure natively, rather than forcing every customer into one undifferentiated account.
Without it, delegated administration becomes difficult: a reseller or enterprise customer has no way to manage their own sub-accounts, assign scoped permissions, or control which users can access which parts of the structure. Authorization scope, SSO configuration, and data access all need a structural boundary to attach to — account hierarchy is what provides that boundary.
Account hierarchy also matters for billing and reporting: it lets a platform track usage, seats, or costs at the level that makes sense for the customer — per business unit, per region, or rolled up to the parent account — instead of a single undifferentiated number.
Here some of the primary benefits of using an account hierarchy in an organization or within a software tool:
Salesforce is a popular SaaS-based customer relationship management (CRM) platform, which offers an account hierarchy feature. Building a Salesforce Account Hierarchy involves creating relationships between Account records to illustrate the structure of parent companies and their subsidiaries. This feature is critical for visualizing organizational structures within Salesforce.
Note: this example illustrates account hierarchy in the CRM/sales sense — how Salesforce structures relationships between customer accounts. If you’re building multi-tenant account structures for a SaaS product, the sections above and below cover that context instead.
Steps to Implement Salesforce Account Hierarchy:
Managing an account hierarchy effectively involves a series of strategic steps to oversee and maintain the structure of user or organizational accounts within a system or platform. Here are the best practices to manage an account hierarchy:
In Frontegg’s model, role assignments propagate one way — a role granted at a parent account automatically applies to every sub-account beneath it. Sub-accounts form a single-parent tree structure and can only be removed from the hierarchy once they have no child accounts of their own. Frontegg documents this model as well suited to reselling and other complex multi-level account structures. (See Frontegg’s account hierarchy documentation for full technical detail.)
Suppose an admin is granted the Admin role at a parent account called North America, which has two sub-accounts, US and Canada. Because Frontegg propagates roles downward through the hierarchy, that Admin role automatically applies to both US and Canada as well — the admin does not need to be granted access separately in each sub-account.
There’s a non-obvious catch for account switchers: this inherited access is not automatically listed in the user’s access token (JWT) or their user state. Frontegg’s documentation states that “the accounts where they are allowed will not appear on the user’s access token (JWT) or the user’s state” and that an application implementing an account switcher will “need to calculate behind the scenes which accounts the user should have access to via APIs.” In practice, this means an application can’t just read the JWT to build an account-switcher UI — it needs to resolve the full set of accessible accounts, including inherited sub-accounts, via the API before rendering that list. (See Frontegg’s account hierarchy documentation.)
Frontegg is a leading customer identity and access management (CIAM) platform, which provides a comprehensive account hierarchies feature. This gives vendors the ability to create and manage sub-accounts within a hierarchical structure, particularly important for managing complex account structures or when allowing customers to manage or resell a product.
Within the Frontegg Admin Portal, users can oversee all associated accounts under their control. The presentation of accounts is available in two views:
Creating sub-accounts is a streamlined process. Users simply provide a name for the new account and select an appropriate parent account, facilitating the hassle-free addition of sub-accounts to the hierarchy.
Is this the same as a Salesforce/CRM account hierarchy?
No. This guide is primarily about account hierarchy in B2B SaaS multi-tenant platforms — parent and sub-accounts used to structure a platform’s own customers. Salesforce’s account hierarchy (covered in the example above) is a related but separate CRM concept for organizing sales and customer records.
What’s the difference between an account and a tenant?
This varies by platform, so check your specific vendor’s docs — in Frontegg specifically, a tenant and an account are the same concept. An account hierarchy describes how a parent account can have nested sub-accounts (a third layer and beyond) within that tenant, which is different from multi-tenancy itself, which isolates separate tenants’ data from one another.
What’s the difference between account hierarchy and multi-tenancy?
Multi-tenancy isolates separate customers’ data and configuration from one another, while account hierarchy manages relationships and dependencies within a single tenant — this is the distinction Frontegg’s own documentation draws. See the comparison table above for a full breakdown.
How does role inheritance work across sub-accounts?
In Frontegg’s model, role assignments propagate downward: a role granted at a parent account automatically applies to every sub-account beneath it.
Is there a limit to how many levels an account hierarchy can have?
This varies by platform. Frontegg’s documentation does not specify a maximum nesting depth for account hierarchies.
Learn more about Frontegg enterprise readiness