A salesperson reviews their prospects, an accountant downloads invoices, and a customer tracks orders. In a CRM or customer portal, these users may share the same application while having different needs. For a small business in Nice, Cannes or Monaco, defining their access precisely is part of making the tool work day to day.
Distinguish signing in from permissions
Authentication verifies the user’s identity. Authorisation determines which resources and actions they can access. OWASP distinguishes these mechanisms in its authorisation guidance.
Consider a fictional maintenance company: a technician needs to view assigned jobs and add a service report. Management may want to provide access to the necessary contact details while reserving commercial margins for managers. These decisions should be made before the screens are developed.
Describe permissions through concrete situations
We recommend preparing a table linking each user profile to the relevant data and permitted actions. Avoid broad labels such as sales access without defining their scope. Here are some possible rules to adapt to your organisation:
- A salesperson views and updates prospects in their own portfolio.
- A manager reassigns their team’s records.
- An accountant views invoices without changing sales notes.
- A customer downloads documents belonging to their own company.
Treat viewing, editing, deleting and exporting as separate permissions. Also decide how to handle cover arrangements, shared records and users associated with several companies. Written rules let you discuss exceptions before discovering them during an incident.
Enforce the rules on the server
For every request, the server must check whether the user can perform the requested action on the relevant record. OWASP recommends this check in its business logic security guide.
Hiding a button in the interface does not perform that check. Ask the developer to check direct access and API interactions too: these are the requests the application uses to read or change data.
Identifiers that are difficult to guess can make certain attempts harder, but they do not replace permissions. This is explicitly stated in OWASP’s guidance on insecure direct object references.
Include documents in the scope
An invoice or contract needs appropriate protection when downloaded. OWASP recommends checking file permissions and favouring storage outside the directly accessible web root, or on a separate server.
Include PDFs, attachments, previews and exports in your requirements. For each category, specify who may obtain the file and how any sharing links should be handled.
Plan for role changes and departures
Assign responsibility for creating, reviewing and removing access. When someone leaves, request account deactivation and a review of open sessions and associated technical access.
Closing the browser does not guarantee logout: sessions must be managed on the server. Ask how your application behaves and what mechanisms are available to revoke access effectively.
Test denied access as well as permitted access
Plan tests using several profiles and two fictional companies. Check that one customer can access their own documents, then confirm that the other cannot access them. Check editing and exports as well.
Ask for these checks to remain in place as the application evolves. OWASP recommends regression tests to detect broken access rules. At NIKAIA.NET, we recommend making these scenarios part of the project’s acceptance criteria.
Sources and guidance
For your project : NIKAIA.NET services.