Custom software / project scoping

How to specify user roles and permissions for custom software

Before estimating a multi-user workflow for a Malaysian business, decide which people can view, create, change, approve or export each kind of record. A short role-by-action matrix turns broad expectations into questions and tests a buyer can review.

Start with the decision

A sign-in answers who; authorization answers what they may do

Authentication checks an identity. Authorization decides whether that identity may perform a particular action on a particular resource. A person being signed in does not, by itself, mean they should see every record or use every action.

Start with business records and actions, not just screen names or job titles. If access depends on a person creating a record, being assigned to it, belonging to a team, or holding an approval step, write that relationship or condition down as well.

OWASP's general authorization guidance recommends least privilege, denying access by default, validating permissions on every request, and creating tests for the permissions defined during design. These are planning prompts; they do not certify a system or decide a business's access policy for it.

Fictional example

Example: a small work-request portal

Assume a business wants requesters to submit work, handlers to update assigned items, reviewers to decide a defined approval, and an access administrator to manage role membership. The sample rules are deliberately narrow. A real project owner must replace them with rules that fit the records, people and approval process in that project.

Fictional role-by-action matrix — “No by default” means the example does not grant that action without a named business reason.
Record or action Requester Assigned handler Reviewer Access administrator
View a request Own submissions Currently assigned items Items in the review queue Not implied by admin role
Create a request Yes Only if the business requires it No by default No by default
Edit a draft Own draft before submission No by default No by default No by default
Update active work No by default Agreed fields on assigned items No by default No by default
Approve or return No by default No by default Only items in the assigned review queue No by default
Export a record set No by default No by default No by default Only if separately justified and scoped
Manage role membership No No No Role assignment only; record access is a separate rule

On a narrow screen, scroll the matrix sideways to compare all roles. Keyboard users can focus the matrix and use the arrow or trackpad scroll controls.

This is an invented example, not a recommended default for every business. In particular, an administrator does not automatically need access to business records, and an export permission should state which records and fields it includes.

Access changes over time

Decide what happens when a person's role or assignment changes

A role matrix is incomplete if it describes only a new user on day one. Ask the business owner to specify how the system should respond when someone moves teams, receives temporary cover, is removed from a role, leaves the business, or an item is assigned to another person.

  • Set the point when a role change takes effect, and whether a person must refresh or sign in again for the change to apply.
  • For reassigned work, decide whether the previous assignee can still view the record, add updates, approve it, or download it.
  • Decide who owns work awaiting that person's approval, and whether a substitute approver is allowed.
  • Specify who may add or remove role membership, how mistakes are corrected, and whether the change itself needs a record for later review.
  • Keep the reason for each permission clear. If a job title is not enough to decide access, name the required relationship or record condition.
Buyer acceptance checks

Turn the matrix into observable tests

For each rule, record a safe test identity, a fictional or appropriately anonymized record, the steps, the expected result, and the person who accepts it. Test allowed and denied cases; a hidden button alone does not show that a restricted action is rejected.

  1. Own versus another person's record: a requester can see their own submitted item but cannot view another request by changing an item reference or opening its direct link.
  2. Assigned versus unassigned work: a handler can update the fields agreed for an assigned item; an unassigned handler cannot view or change it.
  3. Approval boundary: a reviewer can approve or return an item in the defined queue; a requester or handler cannot perform that approval action.
  4. Role change: after a handler is removed or an item is reassigned, test that the previous handler's old access follows the agreed effective point and the new handler receives only the new scope.
  5. Export boundary: if export is allowed, verify its record and field scope. If it is not allowed, test that direct export attempts are denied without producing a file.
  6. Unknown or removed permission: an unmatched role, removed role or unlisted action is denied according to the agreed default; the attempt causes no record change.
  7. Safe failure: a denied attempt gives a suitable next step without exposing the restricted record, while preserving the record's existing state.

If changes need a history, specify separately which event, actor, record reference, time and before/after values should be retained, who can view that history, and what should not be logged. Logging requirements and retention need project-specific review; this checklist does not promise a particular audit feature.

Approval changes / buyer acceptance

What happens when a request changes after review?

An approval is a decision about the request details the reviewer saw. For a useful scope, show which request version or summary was reviewed, define the allowed status changes, and name who may execute the approved action separately. Approval does not by itself mean the stock moved.

Wholly fictional example: a team requests a transfer of 12 boxes of item BX-14 from Store A to Store B. The business in this example marks quantity and destination as material fields. Each business must choose its own material fields and decide whether a change resets approval; this example is not a universal rule or a Flextech product design.

Fictional stock-transfer cases — agree the policy first, then test the visible result.
CaseDecision and example acceptance check
Unchanged requestDecide: Which exact version and fields does the approval cover, and who may execute it afterward? Check: A reviewer approves version 3 after seeing item, quantity, source and destination. Confirm the decision is attached to version 3; a separately authorized executor may proceed only if the current request still matches and the agreed state transition permits it.
Stale review viewDecide: What should happen if the request changes after a reviewer opened it but before the reviewer responds? Check: The reviewer opens version 3; the requester saves version 4 before the response. Confirm the stale screen cannot silently approve version 4, and the reviewer is shown the current version before deciding. Record separately what happens to any decision already made on version 3.
Material changeDecide: Which fields are material, and does changing one invalidate an earlier approval? Check: Under this fictional policy, quantity and destination are material. Change the destination after version 3 is approved: version 4 returns to the agreed review state, and version 3 approval cannot authorize execution of version 4. A different business may choose different fields or rules.
CancellationDecide: Who may cancel, when cancellation takes effect, and whether a cancelled request may be reopened or must be recreated? Check: Cancel an approved request before execution. Confirm the current state is visibly cancelled and the executor cannot proceed from the old approval. If the request is reopened or recreated, test the business’s stated version and approval rule.
Repeated approval or retryDecide: How should the same reviewer’s duplicate click or repeated response be handled, and what counts as one execution? Check: Submit the same approval twice for the unchanged version. Confirm the second response does not create a second approved transition or a second stock movement; show a clear existing-result or duplicate response under the agreed policy.

At narrow widths, the table wraps into three readable columns without sideways page scrolling.

Before estimating, write down the request identifier/version shown to the reviewer, fields the business treats as material, who may approve and execute, the stale-view response, cancellation/reopen behavior, and duplicate-response rule. These are separate decisions from the role matrix above.

OWASP's Transaction Authorization Cheat Sheet discusses allowed state transitions (section 2.5), protection against changing transaction data during authorization (2.6), and checking authorization before execution (2.8). This is general developer security guidance, not a Malaysian legal requirement, not a business's material-change policy, not a security assessment, and not evidence that any Flextech system implements these controls.

For a broader discussion of the first user path and project boundary, see the custom software and web-application fit questions.

After a permitted change, what should its history explain?

A permission rule answers whether someone may perform an action. A business change history answers what actually happened afterward. An “Updated by” field alone cannot explain a sequence of edits, a failed attempt or an automated change. Agree which decisions the history must help a reviewer make before specifying the fields to collect.

Separate the requested action from its outcome

Fictional example: job J-301 is assigned to staff member A. Reviewer R proposes changing the assignment to B. In an approved test setup, keep three outcomes distinct: the change succeeds; the application refuses it; or the final outcome cannot yet be established. A line saying “assignment changed” would be misleading for the second and third cases. Confirm the stored assignment as well as the event shown to the reviewer.

  • Successful change: the permitted reviewer can identify J-301, the responsible account, the relevant time and the agreed change from A to B.
  • Refused change: J-301 remains assigned to A; any retained attempt is labeled as refused, not as a completed business change.
  • Automated change: the history distinguishes the automated actor from a human reviewer. If a person initiated a later automated operation, decide whether both relationships are needed.
  • Later correction: the review view explains the correction without presenting the corrected value as if it had always been the original one. Whether earlier values can be retained depends on the agreed data and retention rules.

Test the reader's access, not only the editor's access

Someone who can update a job may not need to view every historical value, export a change history or administer its storage. Specify those permissions separately. Test a permitted reader and a disallowed reader, including an old direct link. Agree who can change or remove history and what review evidence should remain. A visible history screen is not, by itself, proof that the underlying records cannot be altered.

OWASP's logging guidance distinguishes business audit trails from security-event logs. It recommends enough event context to explain timing, actors, actions and outcomes, while excluding or protecting sensitive values such as credentials and tokens. This is design guidance, not a security certification or a requirement to copy every business field into a log. Read the OWASP Logging Cheat Sheet.

A small acceptance brief

List the actions that need review, the question each event should answer, the permitted readers, the necessary fields and the fields that must not be captured. Agree timestamps and timezone, retention and disposal responsibilities, correction behavior, and what reviewers should see if history is temporarily unavailable or incomplete. Use invented records and dummy secrets to test the agreed exclusions, never real credentials or customer data. Record the expected and actual outcome for each case before accepting the feature.

This is a proposed buyer acceptance exercise, not a claim that Flextech has implemented or certified a particular audit system. For reconstructing a report at a historical cutoff, use the separate historical reporting example; a change-history screen does not establish that every old report can be reproduced.

What should a customer-portal invitation actually grant?

An invitation email, an accepted invitation and permission to use a customer's records are different states. Before adding an invitation button, agree who may invite someone, which customer account the invitation concerns, which initial role is proposed, and how the recipient's identity is established.

Fictional example: account administrator A invites a new contact to Customer C-501's portal with a view-only role. The intended result is access to C-501's agreed records, not every customer's records and not permission to invite additional people. This example is a proposed acceptance case, not a feature claim or a default policy for all portals.

Agree the lifecycle before writing the email

  • Pending: distinguish a created invitation from delivery or acceptance. Define how the inviter recognizes a pending invitation without assuming the email was read.
  • Expired: specify the lifetime and the next step after expiry. An old link must not silently grant the originally proposed access if the invitation is no longer valid.
  • Replaced or withdrawn: decide whether resending keeps the old invitation or replaces it, and how the application handles an older link. Do not assume a new email automatically invalidates previous access.
  • Accepted: check the recipient's actual customer membership and permissions. A success message alone is not acceptance evidence.
  • Access later removed: withdrawing an unused invitation and removing an established membership are separate operations. Agree how existing sessions and old direct links behave after access is removed.

Run a fictional recipient test

Use controlled test accounts, never a real customer's email to test delivery. Try the intended identity, a different signed-in identity, an expired link and the older link after a resend or withdrawal. Check the visible result and the resulting membership. A forwarded link must follow the agreed identity-verification rule rather than automatically adding whoever opens it. Test what an already-accepted recipient sees on opening the link again.

After a successful acceptance, verify a permitted C-501 record and a disallowed C-502 record using the normal interface and an old direct link. Confirm that view-only access does not permit edits or invitations. Reuse the role matrix above rather than inventing a second conflicting access policy.

Auth0's organization-invitation documentation is one implementation example: invitations identify an organization, application and recipient, can include role assignments, and have an expiry setting. Microsoft's Entra B2B guidance separately describes pending and accepted invitation consent states. Neither reference proves which behavior another platform supports or that a custom portal uses those products. Auth0 invitation settings · Microsoft invitation redemption.

Before estimating, document the inviting role, intended customer, initial permissions, identity rule, validity period, resend/withdrawal behavior and support owner for failed acceptance. Do not put invitation tokens, passwords or real customer records in an enquiry. This is software-buying guidance, not a security assessment or a promise of a supplied invitation system.

Prepare a scope discussion

Bring a small permission worksheet

People and roles

Who uses the workflow? Which roles are stable, temporary, external or responsible for access administration?

Records and actions

What record types exist? For each, who may view, create, edit, approve, assign, export or delete?

Conditions and exceptions

Does permission depend on ownership, assignment, team, approval stage or another agreed fact? What should happen when that fact changes?

Tests and ownership

Who supplies safe test identities, who decides ambiguous rules, and who accepts each allowed and denied result?

For the broader first user path and system boundary, read the custom software and web-application fit questions. For input ownership, exception handling and approval responsibilities, see the workflow data-readiness guide. To compare estimates and acceptance scope, use the custom software estimate checklist.

This guide is general buyer education, not legal advice, a penetration test, security certification, guarantee, or claim that a particular Flextech product implements these rules. Features, access model, tests, data rights and price require review and agreement for each project. Use fictional or appropriately anonymized examples; do not send credentials or customer records in an enquiry.

Further reading

Authorization guidance

OWASP's Authorization Cheat Sheet discusses least privilege, deny-by-default, checking permission on each request, and testing the mapped authorization rules. Checked 11 November 2026. It is general developer guidance, not a Malaysian legal requirement or an assessment of a Flextech system.

Start a conversation

What should each person be able to do?

Share the workflow, the record types, and one example of an action that should be allowed and one that should be denied. Use anonymized examples.

Discuss your idea ↗