Customer portal roles and permissions: an access matrix

Define customer portal access across companies, users, records, and actions. Includes an example permission matrix and tests for account isolation and access removal.

By Yarify ·

Customer portal permissions should specify which person can perform which action on which organization’s records. A role name such as “customer administrator” is only a label until its scope is defined. Model company membership, record ownership, and sensitive actions together.

Signing in establishes identity. The application must still decide whether that identity is authorized for each requested operation.

Start with an access matrix

The following is a hypothetical document-and-request portal. Adapt it to your actual customer relationships rather than copying the roles unchanged.

Action Customer member Customer administrator Internal support
View company documents Own company, allowed document categories Own company, allowed document categories Assigned companies only
Submit a request Within assigned scope Within assigned scope On behalf of a customer if explicitly permitted
Invite a colleague No Own company with permitted roles Through an approved support process
Remove a member No Own company, subject to administrator rules Logged support action
Change another company’s access No No Separate privileged permission

Specify whether users can belong to multiple companies, whether a parent company can see subsidiaries, and how a user switches context. These are business decisions with direct consequences for the data model.

Check records as well as screens

Hiding an interface control does not authorize the underlying operation. The server must enforce access when retrieving a record, downloading a document, searching, exporting, or applying a change.

OWASP describes broken object-level authorization as a risk when APIs fail to check access to the requested object. For a portal, include tests showing that an authenticated user cannot access another company’s record merely by using its identifier.

Define membership changes

Document invitations, expiry, acceptance, role changes, removal, and the last administrator leaving a company. Decide who verifies a request to transfer administration and what evidence they need.

When access is removed, specify how active sessions and existing download links behave. A permissions update that only affects the next login may not meet the intended requirement. Test the full lifecycle with the identity and file-storage mechanisms actually used.

Keep support access deliberate

Support staff may need to investigate customer problems, but unrestricted access should not be an accidental consequence of working internally. Define eligible staff, allowed actions, approval where needed, and records of sensitive interventions.

If staff can act on behalf of a customer, distinguish the staff actor from the represented customer in the application history. That makes later troubleshooting easier and avoids misleading records about who made a decision.

Acceptance checks before launch

Test every important action with an allowed role, a disallowed role, a removed member, and a user from another organization. Include background jobs and exports as well as interactive pages. Check both the returned response and whether any unintended change occurred.

Keep the matrix alongside the portal requirements checklist and update it whenever a new journey or role is introduced. It gives business owners and engineers a shared description of intended access.

Put it into practice.

Explore our customer portal development service or send us the problem you are working on.

Keep reading.

Need help with your next step?

Leave your email. A short description is enough to start.

We’ll use your details to reply. Inquiries are delivered to our team through Telegram. Privacy notice.