# Property-Level Access and Mass Assignment

> Compare the fields each role receives and may write with the written field policy, and record accepted server-set fields, role fields and leaky lists, exports and errors.

Canonical: https://codelivly.com/rooms/property-level-access-and-mass-assignment
Last updated: 2026-11-25

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 3 h |
| XP | 1150 |

Allowed to open an object is not the same as allowed to see and change every field in it. This room checks what the Ledgerline API returns to each role and which fields it accepts in a request body, against a written field policy. You learn why a server must allow-list writable fields per role, how ownership and role fields are protected, what lists, exports and error bodies should and should not contain, and how to run write tests on tester created objects and record the result as an observation. Every lesson has a terminal exercise on realistic exports and scenario questions that need judgment.

## Lessons

1. Fields Returned That Should Not Be (35 min)
2. Fields Accepted That Should Not Be (35 min)
3. Role and Ownership Fields (35 min)
4. Sensitive Fields in Lists, Exports and Errors (35 min)
5. Guided Lab: Compare Returned and Writable Fields by Role (40 min)

## Related

- [Learning path: Access Control and Multi-Tenant Security](https://codelivly.com/learning-paths/access-control-and-multi-tenant-security)
- [All rooms](https://codelivly.com/rooms)
