Modeling our hierarchy (Client Org -> Dept -> User)
Hello Identity,
I am willing to build a centralized Identity and Authorization Service (IdP) for a set of three B2B applications we developed internally in our small company.
My requirements:
Since we are managing everything centrally, I plan to use a single Organization in the Zitadel instance (our instance's root organization). I will model the Client hierarchy using named groups or roles to maintain separation:
I am willing to build a centralized Identity and Authorization Service (IdP) for a set of three B2B applications we developed internally in our small company.
My requirements:
- We serve multiple external client companies (our "Clients").
- Each Client has one or more Departments, and users belong to one Department.
- Our internal team would manage all user and group administration via the IdP console. Clients are not allowed to administer their own users in the IdP.
Since we are managing everything centrally, I plan to use a single Organization in the Zitadel instance (our instance's root organization). I will model the Client hierarchy using named groups or roles to maintain separation:
- Client Organization: Modeled as a Parent Group (e.g.,
ORG:CLIENT_A). - Department: Modeled as a Subgroup/Role (e.g.,
DEPT:CLIENT_A:FINANCE).
ORG:CLIENT_1 to ORG:CLIENT_1000), multiplied by the number of departments per client.- Is this approach (using thousands of resource-based Groups/Roles, e.g.,
ORG:CLIENT_X) the standard and most scalable way to model a centrally-administered B2B hierarchy in Zitadel? - Zitadel's native multi-tenancy focuses on creating one Organization per client. Since we cannot use this model due to our centralized administration requirement (at least based on my understanding), is the reliance on Groups and Roles the only viable alternative to model the Client hierarchy effectively?