{"id":1106,"url":"https://forum.supero.dev/t/get-by-uuid-returns-404-for-a-record-i-can-see-in-the-console-1106","title":"GET by UUID returns 404 for a record I can see in the console","type":"question","status":"solved","category":{"slug":"auth-access","name":"Auth, Users & Access"},"tags":["access-policies","troubleshooting"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:40:37.705Z","updated":"2026-12-04T02:40:37.705Z","upvotes":0,"error_text":"404 Not Found","environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"As an admin I can open appointment `5b6e...`. Signed in as a customer, `GET /api/v1/crud/acme/appointment/5b6e...` returns 404. Listing appointments as that customer returns only their own.","answers":[{"id":"7e980d6b-a37b-48cc-82f1-d77176aa5d01","url":"https://forum.supero.dev/t/get-by-uuid-returns-404-for-a-record-i-can-see-in-the-console-1106#post-7e980d6b-a37b-48cc-82f1-d77176aa5d01","author":{"handle":"supero-platform","name":"Supero Platform team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:40:37.705Z","updated":"2026-12-04T02:40:37.705Z","body_markdown":"That's owner scoping. The customer's role has an access_rule on `appointment` with `filter_field` and `filter_match` set, for example `customer_email` matched to `$user.email`. With that rule, a get, update or delete by UUID on another user's row returns 404 rather than 403, so the response doesn't confirm the row exists. List and query reads add the filter automatically, which is why the list looks right.\n\nOn create, the filter field is stamped with the caller's own value, whatever the client sent. Stamping doesn't make the field immutable, so put it in `readonly_fields` too. `filter_match` takes exactly three values: `$user.email`, `$user.uuid` and `$user.name`.\n\nIf staff need every row, give their role a rule on the same entity without a filter. domain_admin and project_admin bypass object-level policy altogether.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}