Registrations

On this page

Registrations in FusionAuth are the link between Users and Applications.

A User can have zero or more registrations. Each registration can have zero or more roles associated with it.

The registrations API documents the allowed attributes of a User registration.

If a User exists in a tenant and attempts to authenticate against an Application, but are not registered, the authentication will succeed but they will not be authorized.

Core Concepts Relationships#

A Registration links one User to one Application. The Registration holds the Roles the User has in that Application. For the full model, see Core Types.

HasForHoldsUserRegistrationApplicationRole
HasForHoldsUserRegistrationApplicationRole

A Registration links a User to an Application and holds the User

Attributes#

With advanced registration forms, you can customize the attributes of a registration. By default, registrations have the following attributes:

Username
  • Optional

The username of the User for this registration only.

Languages
  • Optional

A list of locales that give, in order, the User's preferred languages. These are important for email templates and other localizable text. See Locales.

Timezone
  • Optional

The User's preferred timezone for this registration.

Roles
  • Optional

The roles that the User has for this registration.

Registrations and Self-Service Registration#

When an Application has Registration mode set to Create registration, a user without a RegistrationThe association between a User and an Application. for the Application can log in through the hosted login pagesThe login, registration, password recovery, and multi-factor authentication pages that FusionAuth serves. A Theme controls the look of the pages.. FusionAuth creates the Registration during the login and assigns the default roles of the Application.

Self-service registration applies only to the hosted login pages. The following logins don't create a Registration, even when Registration mode is Create registration:

  • A login with the Login API. The Login API returns a 202 status code and no refresh token.
  • A login with the Password GrantAn OAuth 2.0 grant type in which the user gives a username and password directly to the application. RFC 9700 forbids this grant.. FusionAuth returns tokens, but the user stays unregistered. For more information, see Users Without a Registration.

To register a user who logs in with an API, create the Registration from your server with the Registrations API. For more information, see Register a User and Log In.

A login through an Identity ProviderAn external system, such as Google or Microsoft Entra ID, that FusionAuth can use for authentication. can also create a Registration. When Create registration is on for the Application in the Identity Provider, FusionAuth creates the Registration for both hosted and API logins, with any Registration mode. When Create registration is off, only a hosted login to an Application in Create registration mode creates the Registration. For more information, see Applications and Overrides.

For example, a Tenant has the following Applications:

  • Pied Piper Video Chat, with Registration mode set to Create registration
  • Pied Piper Email Service, with self-service registration disabled

The user richard@piedpiper.com has an account in the Tenant, with no Registration for either Application. Richard logs in to Pied Piper Video Chat through the hosted login pages. FusionAuth creates a Registration for Pied Piper Video Chat. The access token contains the applicationId claim and the default roles.

Richard then logs in to Pied Piper Email Service. The login succeeds, because Richard has an account in the Tenant. FusionAuth creates no Registration, so the access token contains no roles and no applicationId claim.

For more information, see Authentication and Authorization.