Two Keys and a Locked Box
Meet Priya. Priya runs a smart note app for each client. Smart helpers write notes inside it. Think of app rights like keys in an inn. Each guest gets one key. A room key must unlock only one door. It must never open another room.
Your app holds private notes for many people. Authentication means the app checks your login name. It makes sure you are you. Authorization means the app checks your access rights. It decides what files you may touch.
Both tasks do very different jobs. You must make sure no guest reads other notes. We will run a safe test now. You will make two safe test accounts. Then you will check both accounts for leaks.
- Create two safe test accounts.
- Try private records and file links from both.
- Remove access and check the lock again.
Tools and Test Setup
You do not need fancy tools for this test. You only need a plain web browser. You also need two test login names. An identity is a test user name. Never use real client data for your tests. Real data could get lost or seen.
Make fresh test files with silly names. Priya opens two browser windows on her screen. Window One holds Account A. We call this user Alpha. Window Two holds Account B. We call this user Beta.
Alpha acts as the owner of the note. Beta acts as a plain viewer. This setup lets Priya switch users fast. She also opens a blank text pad. A link is a web address for a file. She pastes file links there to test them.
Map Your Rules Before You Click
Write down your rules before you test things. A role is a job title like owner. A matrix is a chart of your rules. The chart shows who can see each file. It also shows who can change each file.
An endpoint is a server address that takes orders. For example, a delete link is an endpoint. It tells the server to trash a file. Priya writes down three roles for her test. The three roles are Owner, Helper, and Viewer.
An Owner can edit and trash a file. A Helper can only edit the file. A Viewer can only read the text. You must know the rule before you click. A denial must never leak secret note text.
A Worked Example with Fake Data
Priya makes a fake file under user Alpha. She names this fake test file Note-Sun-Ten. Next, she invites Beta as a Viewer. In Beta's window, the trash button is gone. Priya knows that web screens can lie.
She copies the delete link from Alpha's window. A request is an order sent to a server. Priya pastes that link right into Beta's browser. This sends a direct delete request as Beta. Beta asks to trash Note-Sun-Ten right now.
What does the app server do next? A weak app only checks if Beta is signed in. It deletes the file right away. That is bad. A strong app checks Beta's role. It says no and keeps Note-Sun-Ten safe.
A Second Use Case: Secret File Links
Now let us test shared files and reports. Priya's app can save summary files for teams. An export is a saved copy of data. Alpha makes a private text report. The test file is named Report-Oak-Six.
The app gives Alpha a direct file link. Alpha uses that link to download the file. Now Priya signs out of user Alpha. She signs into user Beta in that window. Beta is not on Alpha's team at all.
Priya pastes the link into Beta's web browser. What happens when Beta loads that direct link? If the file opens, you have a leak. The server must check access on every file link. No guest should ever guess a file link.
Common Mistakes and Clear Fixes
A hidden menu is not an access rule. Do not just hide buttons on the screen. Curious guests can send direct orders to endpoints. Your server must check rules on every single call. Always test direct links with no buttons.
Watch out for big bulk list tools, too. A single file endpoint might have good locks. Yet a bulk download tool might leak every file. Always test bulk exports with your plain viewer user. Check all files on that list.
People also forget to retest after access ends. Revoke means to take back an access pass. When you drop a helper, rights must end. Old login states must never view private notes. Test files again right after you drop a user.
How to Verify Your Access Checks
Keep track of each test on a small chart. Write down the user, the test, and the outcome. Evidence is proof of what the server did. This chart gives your team proof that locks work. It shows that your app keeps data safe.
Look at the check chart shown below. It shows standard tests you can run right now. Each row tests an order outside normal screen clicks. Make sure your server acts like the chart says.
| Controlled case | Expected evidence |
|---|---|
| Viewer calls delete endpoint directly | The service rejects the operation under the role policy. |
| Account A requests Account B's export | No private rows or file contents are disclosed. |
| Collaborator membership is removed | Subsequent operations follow the current membership policy. |
A Test You Can Perform Today
You can run this simple test right now. It takes less than ten minutes to do. First, make a fake note in Account Alpha. Name that test note Note-Box-One. Second, copy the link from the top browser bar.
Third, sign into Beta in your second window. Paste that link right into Beta's browser bar. Watch what the app puts on the screen. It should show a clear access denied note. It must not show any note text.
Now invite Beta to help with the note. Next, revoke Beta's invite to that same note. Try to open the file link once more. Make sure the dropped account cannot view the note. The lock must hold firm.
Next Steps to Keep Data Safe
Save your test chart in a safe folder. Show the test notes to your build team. This helps them fix bad endpoints right away. Regular tests keep client notes safe from bad leaks. Test your roles every time you add code.
Roseram can help you write your role test lists. Roseram can organize rules based on team needs. App access and limits depend on your current plan. Roseram makes role rule charts easy to read. For now, careful human tests keep client data safe. Grab two test accounts and try a test today.
Act as a software QA tester. Here is my setup: Account Alpha owns a private note named Note-Sun-Ten. Account Beta has Viewer rights. Write a step-by-step test plan to check that Account Beta cannot delete or export Note-Sun-Ten with direct requests. Include expected server responses.
Your idea. Your next step.
Put Roseram super intelligence to work.
Bring the idea you keep coming back to. Choose a Roseram plan, then give your project a clear first task. You can think it through, build a first version, and improve it as you learn.
Check current access, plan limits, and pricing before joining.
Your next step
Your quick checklist.
Tick a step as you finish it. Your ticks and feedback stay on this device. They are not public reviews.
0 of 7 complete
Tell the community what you tried or tell us what needs fixing. Include a source if you are correcting a fact.
Your questions, answered
Is knowing a user the same as giving them permission?
No. Identity is who you are. Permission is what you may do.
Can I test permissions only through the screen interface?
No. Send direct web calls too. Hidden buttons can leave doors open.
What should an error show when access is denied?
Say no with a simple message. Never leak secret text or paths.
How do I know the task is done?
Save your user permission grid. Keep tests for each test account. List any borders not yet tested.
Want the technical details?Open the code notes, deeper checks, and common questions.
These notes go deeper. Use the parts that fit your project. Examples are for learning; they are not claims that we tested your app.
A worked example: where the task becomes difficult
A fictional project tracker has owners, collaborators and viewers. The interface hides the delete button from viewers, but the delete endpoint only checks that someone is signed in. A viewer can call it directly. Build a permission table before testing and use fake projects owned by two separate accounts. Test the resource identifiers and operations outside the ordinary navigation path.
Decisions to make before implementation
Define the actor, resource ownership and operation separately. Access can change after invitations are revoked, so session state alone may not be enough. Check list filtering, record detail, updates, exports and file URLs. Denial should avoid leaking the private record through error text. Keep tests reversible and restrict destructive cases to explicitly controlled resources.
A practical sequence for the work
Use the sequence below as a task boundary, not as a claim that the example has been executed. Work with approved inputs and the project’s actual architecture. If a required integration or permission is unavailable, keep that stage visibly incomplete rather than generating a plausible substitute result.
- Write the role/resource/operation matrix from approved product rules.
- Create fake resources under two controlled identities.
- Exercise direct requests for permitted and denied operations.
- Retest after membership changes and inspect private-file access separately.
A detailed brief you can adapt for your agent
Replace the illustrative context with your approved facts and controlled inputs. Keep the stated boundaries when adapting the brief. The expected deliverable matters more than a particular tool name: ask for an explanation grounded in the inspected material and evidence for the requested outcome.
Verify the supplied permission matrix using two controlled accounts and fake projects. Test direct reads, writes, exports and downloads, not only button visibility. Include membership revocation. Preserve production data and do not broaden permissions as a workaround. Report each allowed or denied result with the tested resource and revision.
Failure modes that an attractive preview can hide
Testing only the happy path as an administrator misses the core boundary. Also watch for bulk endpoints that omit checks used by single-record handlers. Do not test against another real customer’s account without authorization. Use controlled fixtures whose ownership is known and report unavailable test roles rather than pretending the matrix is complete.
Acceptance checks and the evidence to retain
Keep the matrix, controlled identities, observed outcomes and untested boundaries. Passing representative checks supports the access model but is not a complete security certification.
| Controlled case | Expected evidence |
|---|---|
| Viewer calls delete endpoint directly | The service rejects the operation under the role policy. |
| Account A requests Account B’s export | No private rows or file contents are disclosed. |
| Collaborator membership is removed | Subsequent operations follow the current membership policy. |
Common questions
Is authentication the same as authorization?
No. Knowing the identity does not establish permission for every resource or operation.
Can I test permissions only through the interface?
Include direct requests because hidden controls can leave receiving operations accessible.
What is the practical completion criterion?
Keep the matrix, controlled identities, observed outcomes and untested boundaries. Passing representative checks supports the access model but is not a complete security certification.
Where the facts come from
Use these links to check the technical facts. The stories here are made-up examples to help you learn. Roseram sells AI tools; our examples are not promises of results.
- MDN: practical security implementation guides ↗
What this source covers
Web security implementation reference; task-specific threat models and review remain necessary.
References last reviewed 2026-10-11. Writing refreshed 2026-10-14. Spot a mistake? Tell us.