Multi-Tenant Web Portals: How Subscriptions and Role-Based Access Work
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.
| Model | How data is kept apart | Good for | Trade-off |
|---|---|---|---|
| Shared database, tenant ID on every record | One database, and every record carries a tenant ID | Many small tenants and lower running cost | Every query must filter by tenant correctly, or data can leak |
| Separate schema per tenant | One database server, with separate tables for each tenant | Moderate isolation needs | More work to set up and upgrade as tenants grow |
| Separate database per tenant | A database for each tenant | Strict isolation or data-location requirements | Higher cost and more complex maintenance |
| Separate installation per tenant | Each tenant gets its own copy of the application | A few large clients | Every 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.
| Role | Typical access |
|---|---|
| Platform owner | Manages tenants, plans and platform settings |
| School administrator | Manages staff, students, fees and settings for one school only |
| Teacher | Enters attendance and scores for assigned classes |
| Bursar or accountant | Views and records fee payments |
| Parent or student | Views 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
- Who are the tenants, and how many do you expect in the first year?
- What roles exist inside each tenant, and what may each role do?
- How will tenants pay, and what happens when they do not?
- What data must stay separate, and are there legal or contractual limits on where it is stored?
- Do tenants need their own domain, branding or settings?
- 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.