ScaffoldHub - v2
  • Introduction
  • Modeling
    • Two-way Relationships
  • Setup
    • Backend
    • Frontend
    • File Storage
    • Emails with SendGrid
    • Payments with Stripe
  • Debugging
  • Deployment
    • Database
      • SQL
      • MongoDB
    • Backend
      • Google Cloud - App Engine
      • Google Cloud - Run
      • Under construction...
    • Frontend
      • Firebase Hosting
      • Heroku w/ Subdomains
      • Under construction...
  • Features
    • Projects
    • Preview
    • Tenants
      • Single-Tenant
      • Multi-Tenant
      • Multi-Tenant (w/ subdomains)
    • Payments
    • Security
    • Authentication
      • Sign-in and Sign-up
      • Invitation
      • Password Reset
      • Password Change
      • Email Verification
    • Audit Logs
    • Settings
    • Internationalization (I18n)
    • Entity
      • Form
      • Filter and List
      • Export
      • Import
    • API Documentation
  • Architecture
    • Security
    • File Storage
    • Internationalization (I18n)
    • Payments
    • Typescript Support
    • Rate limiting
    • Technologies Versions
    • Under construction...
  • Recipes
    • Testing the API with Postman
    • Enterprise sign-in with WorkOS
    • Under construction...
  • Support
  • Changelog
    • Documentation
    • Scaffolds
  • Custom Development
  • Legacy Scaffolds
  • Go to ScaffoldHub
Powered by GitBook
On this page

Was this helpful?

  1. Features
  2. Tenants

Single-Tenant

PreviousTenantsNextMulti-Tenant

Last updated 4 years ago

Was this helpful?

The single-tenant mode scopes the application data to a single tenant.

Let's use the as an example. Every customer, product, or order that you create, will be available to all users of the platform to access, restricting only on their to access it.

By default, when you register the first user, they will be set as the admin of the application.

New users will have to wait until the admin invite or give them permission.

You can override this behavior on the code and assign default permissions to users.

The file that contains this logic is backend/src/services/auth/authService.ts.

Read the section for more information.

Architecture > Security
demonstration application
roles and permissions