Customer Portals Need a Permission Model Before a Login Page
Map who can see and change each record, then test those boundaries across every route into the application.

Describe roles through real tasks
List the people who use the portal and the actions they need to perform. A customer administrator, a team member, and an internal support agent may have different responsibilities.
Describe the records each person can access and how membership changes. Include invitations, departures, account transfers, and temporary support access. These workflows define the permission model more clearly than a list of role names alone.
Keep ownership explicit
Every protected record needs a clear relationship to the account or organization that owns it. Apply that relationship when reading, searching, exporting, and modifying information.
Hiding a record in the interface does not protect its API endpoint or download URL. Server-side authorization should enforce the same boundaries regardless of how the request reaches the application.
Plan administrative actions carefully
Decide who can invite users, change roles, download data, and close an account. Consider additional confirmation or review where the consequences justify it.
Make significant changes visible to the appropriate people and retain a useful audit record. Explain the effect of role changes in plain language so an administrator does not accidentally grant more access than intended.
Test with contrasting accounts
Create test users in different organizations and with different roles. Attempt to access records through direct URLs, search, exports, and background operations, including records that should remain inaccessible.
Repeat these checks when adding a new feature or integration. Permissions can be lost in cached responses, derived files, and asynchronous jobs even when the main interface behaves correctly. A portal is ready when the important boundaries have been exercised, not just when sign-in succeeds.
Account recovery deserves the same attention as ordinary sign-in. Verify how identity is established, how access is restored, and how existing sessions are handled after a recovery or membership change. Support procedures should preserve the permission boundaries established in the application.


