Guide: web portals

Multi-Tenant Web Portals: How Subscriptions and Role-Based Access Work

A multi-tenant web portal serves many organizations from one application while keeping each one’s data separate. Before any screens are designed, settle three things: how tenants are kept apart, who can do what, and how subscriptions are billed. Mistakes in these areas are expensive to fix later.

Key takeaways

  • Multi-tenant means one application, many customers and separate data for each.
  • Decide the tenancy model and permission rules before design starts.
  • Check access on the server for every request, not just by hiding buttons.
  • Plan for failed payments, plan limits and cancellations from day one.
  • Not every project needs multi-tenancy. Simpler options may fit.

What multi-tenant means

In a multi-tenant system, one application serves many separate customers, called tenants. Each tenant sees only its own users, records and settings, even though everyone uses the same software.

A group of schools sharing one school-management platform is a simple example. Every school has its own staff, students and fees. The platform owner manages them all and bills each school.

The alternative is to give each customer its own copy of the application. That is simpler at first but gets harder to update as the number of customers grows.

Choosing a tenancy model

The tenancy model decides how each tenant’s data is kept apart. There is no single best answer. It depends on how many tenants you expect, how sensitive the data is and how much you can spend on running the system.

ModelHow data is kept apartGood forTrade-off
Shared database, tenant ID on every recordOne database, and every record carries a tenant IDMany small tenants and lower running costEvery query must filter by tenant correctly, or data can leak
Separate schema per tenantOne database server, with separate tables for each tenantModerate isolation needsMore work to set up and upgrade as tenants grow
Separate database per tenantA database for each tenantStrict isolation or data-location requirementsHigher cost and more complex maintenance
Separate installation per tenantEach tenant gets its own copy of the applicationA few large clientsEvery update must be repeated for each copy

Role-based access control (RBAC)

Role-based access control gives each person a role, and each role a set of permitted actions. It keeps people from seeing or changing things that are not theirs.

Here is how it could look in a school platform.

RoleTypical access
Platform ownerManages tenants, plans and platform settings
School administratorManages staff, students, fees and settings for one school only
TeacherEnters attendance and scores for assigned classes
Bursar or accountantViews and records fee payments
Parent or studentViews own records, results and invoices

Give each role the least access it needs. Check permissions on the server for every request. Hiding a button in the screen does not protect the data behind it.

Subscription billing

If tenants pay you monthly or yearly, billing becomes part of the product, not an add-on. Decide these things early:

  • Plans and limits. What does each plan include, such as the number of users, students or storage?
  • Trials and upgrades. What happens when a tenant changes plan in the middle of a billing period?
  • Failed payments. How many retries, what reminders, how long is the grace period, and what is restricted afterwards?
  • Cancellation. What happens to the tenant’s data, and for how long can they export it?
  • Receipts and invoices. What records do tenants and your accountant need?
  • Currency. Will you charge in naira, dollars or both?

Payment providers such as Paystack and Flutterwave offer recurring-billing features. Check what they currently support for your customers’ cards and currencies before you design around them.

Data isolation and security

  • Enforce the tenant check in one central place, not separately on every screen.
  • Test with two dummy tenants and try to reach one tenant’s data from the other. Repeat after every major change.
  • Require strong sign-in for administrators, ideally with two-factor authentication.
  • Keep audit logs of sensitive actions, such as changing fees or deleting records.
  • Plan backups and how you would restore one tenant without affecting the others.
  • Treat personal data carefully. Nigeria’s data protection law applies to the information of students, patients and customers.

When you may not need multi-tenancy

Many projects look like platforms but are not. If you serve one organization, or only a handful of clients, a simpler setup may be cheaper and safer.

A membership plugin on a standard website can handle paid access and member areas for many businesses. WordPress Multisite can run several separate sites from one installation. Neither is the same as a full multi-tenant application, but either may be enough for a smaller need.

Questions to answer before scoping

  1. Who are the tenants, and how many do you expect in the first year?
  2. What roles exist inside each tenant, and what may each role do?
  3. How will tenants pay, and what happens when they do not?
  4. What data must stay separate, and are there legal or contractual limits on where it is stored?
  5. Do tenants need their own domain, branding or settings?
  6. Who will support users and maintain the system after launch?

How Naija Free Websites approaches this

Our pricing page lists school management systems, membership platforms and custom web applications among our custom projects. Multi-tenant platforms are a larger undertaking, so we scope them individually and agree the details in writing before work begins.

I recommend starting with the questions above, even if you never hire us. A clear brief saves time and money with any developer. Our monthly and ownership plans cover standard websites. Custom projects are quoted separately, and third-party software or hosting costs may apply. Compare the standard options on the pricing page.

Frequently asked questions

How much does a multi-tenant portal cost?

There is no standard price. Cost depends on the number of roles, the billing rules, integrations, security requirements and testing. Ask for a written scope and a clear breakdown of build and running costs.

Can WordPress do this?

For simple needs, a membership plugin or WordPress Multisite may be enough. Complex tenancy, custom billing rules and strict data separation usually call for a custom application. Describe your requirements first, then choose the tool.

How long does it take?

It depends on the scope. A simple members-only portal can be much quicker than a platform with several roles, billing and reports. Treat any fixed timeline given before requirements are clear with caution.

How could schools use a multi-tenant platform?

A school group or software provider can run one platform for many schools. Each school manages its own students, staff and fees, while the platform owner manages plans, support and reporting across schools.

What maintenance does it need?

Expect software updates, backups, security reviews, monitoring and user support. Budget for these from the start, because a platform with paying tenants needs to stay reliable.

Planning a portal or platform?

Tell us what the platform must do and who will use it. We will help you decide what is realistic before any work begins.