How Zitadel project grants delegate access to customer admins
A SaaS team that serves business customers usually does not want to create every end user of every customer by hand. A project grant in Zitadel lets your own organization share a project's roles with a customer organization, so that the customer's administrators can assign those roles to their own staff. You keep ownership of the application, its project and its role definitions, and the customer decides who inside their company gets which role. The model follows the documented structure: an instance is the top-level virtual tenant with full data isolation, organizations inside an instance hold users and projects, and projects group applications, roles and grants. The customer's users live in the customer's organization, while the project that defines the roles lives in yours.
The hierarchy is what determines when you need a grant. If the users who need access belong to your own organization, such as your support staff or internal operators, you assign roles directly within that organization. If the users belong to a different organization, which is the normal case for a B2B customer, a grant is the mechanism that makes your project visible to them and lets their org admins assign roles from it. Use a grant when the customer should control role assignment over time, and use direct assignment or an external user role assignment when a single known person in your organization needs a role on a project. Before you commit to a design, confirm in the current Zitadel organizations documentation how grants, granted projects and external role assignments are named and exposed in the Console and API for your version, because these names change between releases.
Role design is where most of the long-term cost sits. Once customers hold grants and have assigned roles, renaming or removing a role breaks their configurations and their tokens, so define a small, stable set of roles tied to application permissions rather than to individual customer workflows. Plan who on your side owns role changes, how you will notify customer admins of new roles, and how you will test a grant on a non-production instance before rollout. Ask your team to write down which roles a customer admin may grant, which they may not, and what happens to granted roles when a customer organization is suspended or removed.
Grant options and when each fits
This table compares the four ways a SaaS team can share its project roles with customers: a project grant per customer organization, an external role assignment for individual users, a granted project for shared applications, and roles defined once versus per customer. Read each row for the fit, who administers it, and the main trade-off, then confirm the exact behavior in your own Zitadel version before you commit to a design.
| Option | Best fit | Who administers it | Main trade-off |
|---|---|---|---|
| Project grant per customer organization | Each customer should assign your roles to its own users and manage them without your involvement | Customer organization admins assign roles to their users; your team owns the project and its role set | Every customer gets a grant to maintain, so role changes must stay backward compatible across all grants |
| External role assignment for individual users | A few users from a customer or partner need access to your project without a full grant to their organization | Your project admins assign roles to users who live in another organization | Assignments are made one user at a time by your team, which does not scale well for large customer bases |
| Granted project for shared apps | One application serves many customers and you want a single project with controlled grants to each | Your platform team manages the granted project; customer admins see only what was granted to them | Customers depend on your project design, so changes to shared roles affect every granted organization |
| Roles defined once for all customers | Your product needs one consistent permission model across customers and you want fewer moving parts | Your product team defines roles centrally in the project | Customers cannot tailor role names or sets, so customer-specific needs must be handled elsewhere |
| Roles defined per customer | A customer needs unique permissions that do not fit your shared model | Your team creates and maintains separate role sets, often with customer admins requesting changes | Role sprawl grows with each customer, increasing testing and support effort; confirm limits in your environment |
| Stable role keys and naming | Any model where applications check role keys in tokens or code | Your engineering team sets the contract and version it deliberately | Renaming or removing a role breaks granted customers and their applications at once |
Setting up a project grant for a customer organization
This sequence takes you from defining roles on your own project to confirming that a customer's users receive the right role claims in a test application. Each step ends with a check so you can see the grant working before the customer relies on it.
Define roles on the owning project
In your own organization, open the project that holds your application and create the roles your product needs, such as viewer, editor and billing admin. Keep names stable and tied to permissions your application enforces, since customers will assign them and changing a role name later affects every grant. Your team does this work, using the Zitadel Console or the management API as described in the organizations documentation. Done means the role list on the project matches your written role design, and your application's authorization checks refer to those same role keys.
Create the project grant to the customer organization
Still on the owning project, create a grant that targets the customer's organization and select only the roles that customer should be able to offer its users. Grant the smallest set that supports the product tier they bought, not the full role list by default. Your team performs this step, and the grant is confirmed when it appears on the project's grant list with the customer organization name and the chosen role keys. Record the grant identifier in your onboarding records so later changes are traceable.
Confirm the granted project appears in the customer organization
Sign in as an administrator of the customer organization and check that your project now appears among the projects that organization can use. The customer should see the granted roles and nothing else from your owning organization, such as your other projects or your internal users. If the project is missing or extra roles are visible, correct the grant before continuing. Done means the customer admin can view the granted roles but cannot edit the role definitions on your project.
Have the customer admin assign roles to their users
The customer organization administrator assigns the granted roles to users inside their own organization, using the same Console flow they use for their other applications. Your team does not assign these roles on the customer's behalf unless the agreed scope says so. Check that at least one user in the customer organization holds a granted role and that a second user in the same organization holds none. Done means the assignments exist in the customer organization and the role keys match the grant exactly.
Verify role claims in a test application
Point a test application registered in the owning project at Zitadel and sign in as a user who holds a granted role. Inspect the issued tokens and confirm the role claims contain the expected role keys, scoped to the customer organization. Then sign in as a user in the same customer organization who has no granted role, and confirm the token carries no matching role claim and that your application denies the protected action. Done means both results match your access design, and you keep the output as evidence for the rollout record.
Confirm denial for users outside the grant
Repeat the check with a user from a different customer organization that holds no grant to your project. This user should not be able to see the project or obtain its roles, and the application should refuse access. Record the result alongside the positive test. Done means you have one passing case where a granted user is allowed and two denied cases, one inside the granted organization and one outside it.
How a grant moves roles from your project to a customer's users
The flow starts in your instance, where your organization owns the project and its roles. A project grant hands those roles to a customer organization, and that organization's admin assigns them to their own users. The application then receives a token carrying the role claims. The trust boundary sits at the grant: your side defines what roles exist, while the customer side decides who holds them. Check that the granted roles match what the application expects.
Roles flow from your project through a grant to customer users, with the trust boundary between organizations.
Keeping role design stable as customers join
Once customer organizations hold grants on your project, every role you rename, reuse or delete reaches all of them at once. The cards below cover the decisions that keep role design stable as your customer base grows, and the failures that follow when those decisions are skipped.
Name roles for the product, not the buyer
Role names such as billing-viewer or report-author describe what a user can do inside your application, so every customer admin reads them the same way. Names tied to a customer, plan or department (for example acme-admin) force you to create a new role for each new customer and make grant assignment confusing. Before granting anything, agree a naming convention and write it down. Check that each name still makes sense if a second customer buys the same feature.
Keep customer-specific roles out of the shared project
The project that holds your application roles is shared by every customer organization that receives a grant. Adding a role for one customer's special arrangement changes the role list that all customer admins see when they assign access. Model per-customer differences with the features your application already exposes, such as plan entitlements or feature flags checked in your code, and keep the shared project limited to roles every customer can understand.
Version the meaning of each role
A role name is a label, but customers attach meaning to it over time. If report-author later gains the right to export personal data, existing admins will keep assigning it believing it does the old job. Record what each role permits in a changelog or role catalog, and treat a change in permissions as a new role rather than a silent edit to an existing one. Confirm with your security team who approves permission changes before they reach a shared project.
Add roles without breaking existing grants
Adding a role to a project is usually safe, but it changes what customer admins see in their assignment screens, and your application code must handle users who lack the new role. Deploy the code that checks the new role before you create it, default to denying access when the role is missing, and test with a grant from an existing customer organization. Note which customers have requested the feature so you can communicate the change.
Plan role removal as a deprecation
Removing a role that customer organizations have already assigned can lock users out or leave orphaned assignments in your application. Set a deprecation period, stop offering the role to new assignments, find the users who still hold it, and migrate them to a replacement before deletion. Test the removal in a staging environment that mirrors a production grant, because a role deleted in one place may still be referenced in tokens that have not yet expired.
Document which roles customer admins can assign
Customer admins need a clear list of the roles they can grant to their own users, and your support team needs the same list to answer questions. Publish a catalog that names each assignable role, its permissions, and any roles reserved for your own operators. Confirm in your environment which role assignments a customer organization can perform, and review that list whenever a grant or role changes.
Questions teams ask before delegating roles to customers
Can a small team build project grants for customer admins on its own?
Yes, a small team with working Zitadel experience can build a first version alone, but the work is mostly design and testing rather than configuration. The configuration itself, creating a project, its roles and a grant to a customer organization, is small. The harder parts are agreeing which roles customers should see, deciding how your application reads role claims, and proving that one customer cannot see or assign another customer's access. If nobody on the team has run a self-hosted identity platform in production, a short outside review of the design is a reasonable step. Ask any partner to show how they would test cross-tenant isolation before you agree to scope.
What makes the effort for delegated roles grow?
Four factors move the effort most. The first is the number of roles and how often they change, since each role needs a name, a meaning, and tests in your application. The second is the number of customer organizations and how different their needs are. The third is how much authorization code already exists, because checks scattered across services are slower to change than a single claims-based check. The fourth is testing, including test tenants, automated checks for cross-tenant access, and sign-off from product owners. Ask any quote to break the work down along these four drivers so you can see which assumptions carry the price.
What does the SaaS team need to provide for this work?
The work needs three things from your side. You need a role model written down: role names, the permissions each role grants, which roles customers may assign, and which must stay with your own staff. You need product owners who can make decisions about those roles quickly, because most rework comes from unresolved questions about what a role means. You also need test tenants, meaning at least two Zitadel organizations in a non-production environment with sample users, so that isolation and assignment can be checked before release. Without these, the build tends to stall at design review.
Can customer admins be trusted to assign roles in their own organization?
Customer admins can be trusted with assignments inside their own organization if the boundary is enforced by the platform and your application, not by convention. A project grant limits what a customer can assign to the roles you have granted, and your application must still check those roles on every request. Decide which roles are safe to delegate, keep administrative roles of your own platform out of grants, and log assignment changes so you can review them. Confirm the exact admin permissions in your Zitadel version, because what an organization administrator can change depends on the release you run.
How long does a pilot of delegated roles take?
The length of a pilot depends on the drivers above, not on a fixed number. A pilot with one or two roles, one application and a single friendly customer is much shorter than one covering many roles, several applications and customers with different identity providers. Agree the pilot's exit criteria in writing before it starts: which roles are delegated, which customer tests pass, and what evidence the product owners need. Ask any partner for a timeline based on your written scope, and treat any timeline quoted before the role model is agreed as provisional.
What changes in the token when a customer is granted a project?
When a customer organization receives a project grant, the tokens your application receives for that organization carry the roles that were granted, so your application can authorize requests from the claims in the token. Engineers should confirm which claim names and project identifiers their Zitadel version emits, and test the output against a real token from a test tenant before writing authorization logic. Keep role names stable, because renaming a role changes the claim your application depends on. See the Zitadel organizations documentation for how organizations, projects and grants relate.
What breaks most often after delegated roles go live?
The most common failures are role names changed after customers have assigned them, applications that check roles in some endpoints but not others, and grants that are removed without a plan for the access that depended on them. Another frequent issue is a customer whose identity provider sends different group or attribute values than expected. Prevent these with a versioned role catalog, a single authorization check your services share, a runbook for revoking a grant, and automated tests that run on every release against test tenants.
How DeployOpen scopes project grant work
DeployOpen fixes the role model, grant design and test plan in writing before any Zitadel configuration starts. For project grants, that document names each project and the roles it exposes, the customer organizations that will receive a grant, which roles each grant may carry, and which customer admins may assign them. It also records what stays in your organization and what your customers' administrators may change. Because the grants depend on role names and keys, this is the stage where a rename or a new role is cheapest to handle. Agreeing the scope in writing means the open questions about role ownership are settled before anyone creates a grant in the Console.
Once the scope is approved, DeployOpen delivers the Zitadel configuration inside your infrastructure, on the deployment you control. That covers the projects, roles, grants and the organization settings that let a customer admin assign granted roles, along with checks in the application that read the role claims in tokens and deny access when a role is missing or a grant belongs to another organization. The test plan covers both sides: your administrators confirming their grants are limited, and a customer admin confirming they can assign only the roles you offered. Your team should confirm which Zitadel version and PostgreSQL version will host the work before the build starts, since these determine the exact Console steps and must be checked against the current documentation.
Role models change after launch as customers ask for new permissions, so DeployOpen also offers retainers for ongoing role changes. A retainer covers reviewing a proposed role, updating grants, rerunning the access tests and documenting the change. Pricing and timing for any engagement follow from the written scope and are quoted for that scope, not estimated here. Ask any provider, including DeployOpen, to name who approves role changes, how a change is tested against existing grants and how a rollback is handled. The Zitadel documentation on organizations is the natural reference for confirming how grants and organizations relate in the version you run.

