Skip to main content

ZITADEL Projects

What is a project?​

The idea of projects is to have a vessel for all components who are closely related to each other. Multiple projects can exist within an organization.

Organization grant

All applications within a project share the same roles, grants, and authorizations:

  • Applications is your software that initiates the authorization flow. This could be a web app and a mobile app that share the same roles.
  • Roles are a means of managing user access rights for a project.
  • Authorizations define which users have which roles. Authorizations are also called β€œuser grants”.
  • Granted Organizations can manage selected roles for your project on their own.


If you'd build a Point of Sales Platform, you would have one Project (maybe called POS) and all your applications (one Webapplication for administration, and your mobile applications for your users iOS and Android), would be part of it. You would have to create roles for administration and your clients in this very project, and then create authorizations based on them.

POS Project

Create a project​

To create a project, navigate to your organization, then projects or directly via https://{your_domain}, and then click the button to create a new project.

Empty Project

then enter your project name and continue.

What is a granted project?​

Now imagine you could use the POS platform from the example not only for yourself but sell it to other business partners too. Those partners would maybe have the need to have their own domain, their own branding and add additional social login options. Setting this up in ZITADEL is very easy since all organizations can overwrite their settings. You would only need a method to grant them access.

To add a grant to another organization is done from the project itself. Navigate to grants and hit the new button. Now, enter the domain of the partner organization (if you can't remember it, navigate to the organization and pick it up from the detail page), hit search and then continue.

Now select the roles you want this organization to use and save. This enables you to lock a certain organization out of a feature if you don't want their users to use it. You can learn more about roles here.

Organizations can then create authorizations for their users on their own. The project is shown them seperated from their own projects.

Granted project

Grant a project​

  1. Visit the project POS that you have created before, then in the section Grants click New.
  1. Search the organization you want to grant using the auto complete input and continue.
  2. Select some roles you would like to grant to the organization and confirm.
  3. You should now see the granted organization in the section grants.

Project Settings​


If you have different designs for your organizations or probably and use project grants, you can define the login behavior on the project detail page.

Project branding

You can choose from

UnspecifiedIf nothing is specified the default will trigger. (System settings)
Enforce project resource owner policyThis setting will enforce the private labeling of the organization (resource owner) of the project through the whole login process.
Allow Login User resource owner policyWith this setting first the private labeling of the organization (resource owner) of the project will trigger. As soon as the user and its organization (resource owner) is identified by ZITADEL, the settings will change to the organization of the user.

In a B2B use case, you would typically use the organization setting. If you want to omit organization detection, you can preselect an organization with the primary domain scope (ex. urn:zitadel:iam:org:domain:primary:{domainname}).

Role settings​

Below the branding settings, you can check different checkboxes to get even more custom behavior on authentication.

  • Assert Roles on Authentication: Role information is sent from Userinfo endpoint and depending on your application settings in tokens and other types.
  • Check authorization on Authentication: If set, users are only allowed to authenticate if any role is assigned to their account.
  • Check for Project on Authentication: It is checked whether the user's organization has this project. If not, the user cannot be authenticated.
Role settings

If you want to have roles in your token, this has to be set in your applications as this is dependent on your application type. Navigate to your application and check this setting if you want so.

Roles in token

You can learn more about Application and Token settings in the next section.