Blog

Clients, operators, admins: what I learned about permissions, portals and UX while building multi-role SaaS products.

Lessons From Building Role-Based Platforms

Lessons From Building Role-Based Platforms

Several of my projects share the same core challenge: different groups of people use the same system for very different jobs. WaterSupply has clients, field meter readers and office staff. 24PManager has admins, project managers and clients. Opotunity has volunteers and associations.

Getting roles right early saves a lot of pain later. These are the lessons I keep coming back to.

Design portals, not permissions

Each role deserves its own interface built around its daily tasks, not one big app with buttons hidden behind checks.

  • Field operators see their assigned streets and the readings still missing.
  • Clients see contracts, invoices and a “pay now” button.
  • Admins see the whole system, with analytics and registers.
A dedicated interface for field operators in WaterSupply
A dedicated interface for field operators in WaterSupply

Enforce access on the server

  • Hiding a button is UX, not security. Every endpoint checks the role and the ownership of the data.
  • Keep role checks in one place (middleware or Spring Security config), not scattered in controllers.
  • Test permissions explicitly: “a client cannot read another client’s invoice” is a test case, not an assumption.

“Hiding a button is user experience. Checking the role on the server is security.”

Finally, plan for roles to change. Today’s “admin” often becomes “admin” plus “accountant” plus “support” a year later. A simple role-to-permission mapping in the database is much easier to evolve than hard-coded checks.

Have a project in mind?

If this article sounds like a problem you have, let’s talk. I usually reply within 24 hours.