{"id":1105,"url":"https://forum.supero.dev/t/role-still-reads-an-entity-after-setting-default-access-none-1105","title":"Role still reads an entity after setting `default_access: \"none\"`","type":"question","status":"solved","category":{"slug":"auth-access","name":"Auth, Users & Access"},"tags":["access-policies","rbac"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:40:36.705Z","updated":"2026-12-04T02:40:36.705Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"We created an access_policy for `tenant_user` with `default_access: \"none\"`. Creates on `invoice` are now refused, but a `tenant_user` can still list and read every invoice.","answers":[{"id":"799a20c2-4b54-4f93-bd52-a7ac5a8388b3","url":"https://forum.supero.dev/t/role-still-reads-an-entity-after-setting-default-access-none-1105#post-799a20c2-4b54-4f93-bd52-a7ac5a8388b3","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:36.705Z","updated":"2026-12-04T02:40:36.705Z","body_markdown":"`default_access: \"none\"` stops writes to entities that have no rule. It doesn't stop reads: an entity with no rule stays readable (the read is logged). To refuse reads, give the entity its own access_rule with `can_read: false`. Get, list, list-bulk, query, refs and aggregates on it then return 403.\n\n```json\n{\"name\": \"tenant-user-invoice-rule\", \"parent_type\": \"access_policy\", \"parent_uuid\": \"<policy-uuid>\",\n \"entity\": \"billing:invoice\",\n \"can_create\": false, \"can_read\": false, \"can_update\": false, \"can_delete\": false}\n```\n\nWrite all four flags on every rule. A rule replaces the policy default for its entity, and an omitted flag falls back to the schema default, not to `default_access`: `can_read` defaults to true, while create, update and delete default to false. So a rule that leaves out `can_read` grants read.\n\nThen sign in as that role and check `GET /api/v1/crud/{domain}/access-policy/me` to confirm the entity shows up as you meant.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}