Skip to content

Commit 9af142f

Browse files
committed
docs: a write names only a record its caller can read; a delegate reads its scope's units
The error catalog's reference callout and the field reference's referential integrity section state that a non-system write may name, in a lookup, master_detail or user field, only a record its caller can read, before the record's validation rules. The delegated administration page states that an admin scope grants read on the business units inside its subtree. Claude-Session: https://claude.ai/code/session_01Utp6CYQjMkN514R78sCrTT Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2e53abd commit 9af142f

3 files changed

Lines changed: 19 additions & 7 deletions

File tree

‎content/docs/api/error-catalog.mdx‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,16 @@ object is rejected with `400 VALIDATION_FAILED`, and the specifics ride in
316316
}
317317
```
318318

319-
The check covers create, update and bulk update. Four cases are deliberately
320-
*not* rejections: an empty value (`null` / `""` / `[]`) means "no link", a
321-
`isSystem` write is exempt (seed replay and package install legitimately write
322-
in an order that only resolves once the batch completes), a target that
323-
cannot be checked at all — an unregistered object, an unreachable datasource —
324-
fails **open** rather than inventing a rejection, and an update that carries back
319+
The check covers create, update and bulk update. A write that is not a system
320+
write may name, in a `lookup`, `master_detail` or `user` field, only a record
321+
the caller can read: a record the caller cannot read is answered exactly as one
322+
that exists nowhere, before the record's validation rules run, and so is one
323+
whose read by the caller fails. Four cases are deliberately *not* rejections: an
324+
empty value (`null` / `""` / `[]`) means "no link", a `isSystem` write is exempt
325+
(seed replay and package install legitimately write in an order that only
326+
resolves once the batch completes), a target that cannot be checked at all — an
327+
unregistered object, or an unreachable datasource on a check that does not read
328+
as the caller — fails **open** rather than inventing a rejection, and an update that carries back
325329
a value (or a member of a multi-valued field) the row already stores is not
326330
judged again, because the update does not add it; on a bulk update that holds
327331
only when every matched row already stores it.

‎content/docs/data-modeling/fields.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ The key's full contract is in the [Field reference](/docs/references/data/field)
283283
`reference` is **enforced on write**. A create or update that sets a
284284
`lookup` / `master_detail` to an id with no matching row in the target object is
285285
rejected with `400 VALIDATION_FAILED` and a `fields[]` entry whose `code` is
286-
`reference_not_found` (see the [error catalog](/docs/api/error-catalog)). The
286+
`reference_not_found` (see the [error catalog](/docs/api/error-catalog)). A
287+
write that is not a system write may name, in a `lookup`, `master_detail` or
288+
`user` field, only a record its caller can read: one the caller cannot read is
289+
rejected the same way, before the record's validation rules run. The
287290
same check runs on bulk updates. An update judges only the references it adds: a
288291
value the row already stores, carried back unchanged, is not judged again, so a
289292
deleted user's id left in a `user` field does not block later edits of the record.

‎content/docs/permissions/delegated-administration.mdx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ delegate holds. In the permission set editor (Studio's **All metadata** area), t
5656
block lists the five, marks which ones the set already grants, and adds the
5757
missing ones to the set in one click.
5858

59+
The scope itself grants read on the business units inside its subtree, and on
60+
no unit outside it, so a delegate can pick the units it administers without a
61+
`sys_business_unit` grant. A `sys_business_unit` read grant the delegate holds
62+
reads as that grant says, as before.
63+
5964
## What the runtime gate enforces
6065

6166
Writes to the governed tables (`sys_user_position`, `sys_user_permission_set`,

0 commit comments

Comments
 (0)