Outcome
Read explicit forbid rules for one managed organization; stored rows are separate from effective recipient delivery.
These examples prove local handler behavior with real isolated notification SQL and explicitly simulated identity dependencies.
Before you start
-
Verify pinned identity and the exact published action. Preference/address storage permits self or platform authority; organization admin alone cannot manage another user. Organization forbid rules require authority over the exact organization.
-
Discover the intended user/org independently. These storage handlers do not verify target existence and stored preference lists do not resolve effective delivery. Omitted preference org_id means global wildcard *, while replacement selects organization scope through query.org_id.
-
Before replacement capture the complete previous scope, review the full intended rows and inspect the validated plan. Empty rows clears explicit rules and may permit more delivery. Replacement is sequential and can leave partial state.
-
Channel verify only sets a stored flag and performs no possession challenge. Retain independent authorized ownership evidence before approving it; fixture addresses are unused and authorize no live verification or outreach.
Discover the target
topolo whoami --json
topolo apps --json
topolo actions get app_topolo_auth.organization_notification_policy.list --detail --json
Discover the authorized target user and exact organization. Read user_notification_preferences.list for each scope separately, user_notification_channels.list for stored channel_id values, or organization_notification_policy.list for the managed organization. Copy ids only from the exact selected scope. Effective delivery requires the published resolve action and delivery read-back separately.
Input fields
| Field | Required | Meaning |
|---|---|---|
orgId | Yes | Exact managed organization from authorized discovery for organization forbid rows. Organization-administrator or platform authority is required; wildcard row matching is not organization authority. |
Effects
- Reads only explicit forbid rows for the management-authorized organization.
Interpret the response
Reads this organization explicit forbid rows ordered by event_type/channel, without pagination. forbidden is boolean and false is not a force-enable.
Stored rules are separate from effective recipient preferences/action policies/verified addresses. Empty rules do not prove no deliveries or no organization; this handler checks management authority rather than target organization existence.
Worked examples
These are complete raw target-handler responses, not CLI/gateway envelopes or live authorization proof. Synthetic users, organizations and unused addresses exist only in isolated fixtures. Discover real intended targets and review effects separately. Save only reviewed input as payload.json; validate and inspect the unchanged plan before an authorized call. --confirm assumes intended approval. Cookie/Bearer identities must consistently select the intended principal. Stored rows, ownership evidence, effective policy and actual delivered messages are separate outcomes. No fixture sends a message or performs an address challenge.
Managed organization starts with no explicit forbid rows
Input · payload.json:
{
"orgId": "org_example"
}
CLI:
topolo actions validate app_topolo_auth.organization_notification_policy.list --data @payload.json --json
topolo actions plan app_topolo_auth.organization_notification_policy.list --data @payload.json --json
topolo actions call app_topolo_auth.organization_notification_policy.list --data @payload.json --json
MCP call after validation and plan review:
{
"tool": "topolo_read_action",
"arguments": {
"actionId": "app_topolo_auth.organization_notification_policy.list",
"input": {
"orgId": "org_example"
}
}
}
Captured local handler response · HTTP 200:
{
"success": true,
"message": "Organization policy fetched",
"data": {
"orgId": "org_example",
"rows": []
},
"timestamp": "2026-10-02T00:00:00.000Z"
}
Policy rows are stored constraints rather than a resolved recipient/channel decision
Input · payload.json:
{
"orgId": "org_example"
}
CLI:
topolo actions validate app_topolo_auth.organization_notification_policy.list --data @payload.json --json
topolo actions plan app_topolo_auth.organization_notification_policy.list --data @payload.json --json
topolo actions call app_topolo_auth.organization_notification_policy.list --data @payload.json --json
MCP call after validation and plan review:
{
"tool": "topolo_read_action",
"arguments": {
"actionId": "app_topolo_auth.organization_notification_policy.list",
"input": {
"orgId": "org_example"
}
}
}
Captured local handler response · HTTP 200:
{
"success": true,
"message": "Organization policy fetched",
"data": {
"orgId": "org_example",
"rows": [
{
"organization_id": "org_example",
"event_type": "*",
"channel": "sms",
"forbidden": true,
"updated_at": 1790971419
},
{
"organization_id": "org_example",
"event_type": "auth.password.changed",
"channel": "email",
"forbidden": false,
"updated_at": 1790971419
}
]
},
"timestamp": "2026-10-02T00:00:00.000Z"
}
Read after failed policy replacement shows the partial stored rule set
Input · payload.json:
{
"orgId": "org_example"
}
CLI:
topolo actions validate app_topolo_auth.organization_notification_policy.list --data @payload.json --json
topolo actions plan app_topolo_auth.organization_notification_policy.list --data @payload.json --json
topolo actions call app_topolo_auth.organization_notification_policy.list --data @payload.json --json
MCP call after validation and plan review:
{
"tool": "topolo_read_action",
"arguments": {
"actionId": "app_topolo_auth.organization_notification_policy.list",
"input": {
"orgId": "org_example"
}
}
}
Captured local handler response · HTTP 200:
{
"success": true,
"message": "Organization policy fetched",
"data": {
"orgId": "org_example",
"rows": [
{
"organization_id": "org_example",
"event_type": "*",
"channel": "sms",
"forbidden": true,
"updated_at": 1790971419
}
]
},
"timestamp": "2026-10-02T00:00:00.000Z"
}
Verify the result
-
Require orgId to match the intended organization and inspect complete ordered rows.
-
Resolve delivery for intended recipients/events separately; false forbid and empty rows do not force-enable channels or prove delivery.
Errors and recovery
Ordinary member cannot read managed organization policy
Captured local refusal · HTTP 401:
{
"input": {
"orgId": "org_example"
},
"response": {
"success": false,
"error": {
"message": "Admin access required",
"code": "AUTH_ERROR",
"details": null,
"timestamp": "2026-10-02T00:00:00.000Z"
}
}
}
Organization administrator cannot read another organization policy
Captured local refusal · HTTP 401:
{
"input": {
"orgId": "org_foreign"
},
"response": {
"success": false,
"error": {
"message": "Admin access required",
"code": "AUTH_ERROR",
"details": null,
"timestamp": "2026-10-02T00:00:00.000Z"
}
}
}
Published recovery guidance
-
AUTH_ERROR(HTTP 401): Verify pinned identity. If authenticated, respect self/platform user authority or exact organization management denial; organization ownership alone does not authorize another user address/preferences. Do not assume OAuth expiry or change context automatically. -
VALIDATION_ERROR(HTTP 400): Correct the reported fields only. Use unique event/channel pairs and valid channel-specific addresses. Validate and review the exact complete replacement again before approval. -
NOT_FOUND(HTTP 404): Refresh the target user channels list. A row for another user is not authorized by a known channel id; repeated delete is already absent, not a new successful deletion. -
SERVER_ERROR(HTTP 500): Preserve the result and read the exact stored scope before any new write. A replacement may have deleted old rules and inserted only some new ones; review finishing the intended set or restoring the captured set as a new approved replacement.
Recovery boundaries
Read-only stored metadata. Refresh exact scope after separately approved changes; effective resolution and delivery require their own verification.
Discovery and evidence
This record belongs to app_topolo_auth. Fixtures prove actual NotificationPreferencesController and AuthController authority, validation, canonical notification SQL, duplicate/address identity and sequential replacement failure boundaries. Authenticated identities and unused targets/addresses are simulated and second-insert SQL failures injected. No live storage, ownership challenge, notification, deployment or production publication is proved.