> For the complete documentation index, see [llms.txt](https://docs.openiam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openiam.com/administration-guide/privacy/privacy-reference.md).

# Privacy reference

Every lifecycle status, consent event type, audience selector, audit action, property, webhook signature header and rejection message of the Privacy module, with the database tables behind them.

**Applies to:** OpenIAM 2026.11.1

## What this covers

The values the Privacy module's screens, ledger, logs and messages use, for looking up rather than reading through. Procedures are in [Record privacy and consent](https://docs.openiam.com/administration-guide/privacy.md); the PBAC side — the privacy record, obligations and decision-log attributes — is in [Privacy decisions](https://docs.openiam.com/administration-guide/pbac/privacy-decisions.md).

## Lifecycle statuses

Purposes, processing activities, lawful authorities, notice versions and webhook endpoints share one lifecycle. Only `ACTIVE` counts anywhere outside the registry.

| Status       | Means                                                                                                                                                       | Can move to                    |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| `DRAFT`      | Being written; edited in place                                                                                                                              | `REVIEW`                       |
| `REVIEW`     | Ready for review; still edited in place                                                                                                                     | `APPROVED`, `DRAFT`            |
| `APPROVED`   | Approved; an edit creates a new draft version                                                                                                               | `ACTIVE`, `SCHEDULED`, `DRAFT` |
| `SCHEDULED`  | Approved and held. Nothing activates it on a date                                                                                                           | `ACTIVE`                       |
| `ACTIVE`     | In force. Activating one version deprecates the previous `ACTIVE` version of the same purpose, activity or authority name, or of the same notice and locale | `DEPRECATED`                   |
| `DEPRECATED` | Superseded; read-only                                                                                                                                       | `RETIRED`                      |
| `RETIRED`    | Closed; read-only                                                                                                                                           | —                              |

A purpose's association with an activity is `ACTIVE` or `RETIRED` — **Dissociate** retires it.

## Activation rules

| Object                        | Moving to `ACTIVE` or `SCHEDULED` requires                                                                                                                                          |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Purpose                       | An owner reference and a description; a lawful authority that is `ACTIVE` and inside its validity window; at least one `ACTIVE` association with an `ACTIVE` activity               |
| Notice version                | A locale, presented content, data categories, a withdrawal route, a rights route and a complaint route; at least one covered purpose, every one of them `ACTIVE` in the same tenant |
| Notice version, to `APPROVED` | An approver who is neither the version's author nor its last editor                                                                                                                 |

## Consent

| Event type            | Recorded by                                                     | Resulting status |
| --------------------- | --------------------------------------------------------------- | ---------------- |
| `GRANT`               | The Privacy Center, the consent-required page, **Record event** | `GRANTED`        |
| `DENY`                | **Record event**                                                | `DENIED`         |
| `WITHDRAW`            | The Privacy Center, **Record event**                            | `WITHDRAWN`      |
| `CORRECTION`          | **Record event**. Never the first event of a purpose            | Unchanged        |
| `RENEW`, `IMPORT`     | Integrations                                                    | `GRANTED`        |
| `EXPIRE`              | Integrations                                                    | `EXPIRED`        |
| `REVOKE_BY_AUTHORITY` | Integrations                                                    | `WITHDRAWN`      |

A `GRANT` or `DENY` must record a clear affirmative choice, must not come from a pre-selected control, and must not bundle several activities or data categories into one scope; a `GRANT` must reference an `ACTIVE` notice version. These rules ship in force for every tenant.

| Channel         | Means                                                                        |
| --------------- | ---------------------------------------------------------------------------- |
| `SELF_SERVICE`  | Recorded by the person in the Privacy Center or on the consent-required page |
| Any other value | Entered by an administrator in **Record event** — `EMAIL`, `PHONE` and so on |

## Notices

| **Material-change behavior**         | Stored as   | Effect on consents granted on a version the material change replaced                                         |
| ------------------------------------ | ----------- | ------------------------------------------------------------------------------------------------------------ |
| No action                            | `NO_ACTION` | None. The default                                                                                            |
| Notify subjects                      | `NOTIFY`    | None in this release                                                                                         |
| Require re-consent (route to review) | `RE_PROMPT` | **Review needed** in the Privacy Center; PBAC answers `REVIEW_REQUIRED`                                      |
| Block processing until re-consent    | `BLOCK`     | **Review needed** in the Privacy Center; PBAC answers `DENY`, and the Access Gateway offers the consent page |

**Locale** is stored as a lowercase language, optionally followed by `_` and an uppercase region — `en`, `en_US`, `pt_BR`. A tag typed as `en-us` is stored as `en_US`. It must be an active language of the system catalog, or one of that language's regional variants. A person is shown their exact locale, else their language, else the notice's **Default locale**.

## Audience

The **Audience** dialog stores selectors as comma-separated `kind:value` entries. A person matches when any entry matches.

| Stored entry          | Dialog                         | Matches                                                                         |
| --------------------- | ------------------------------ | ------------------------------------------------------------------------------- |
| Empty, or `everyone`  | **Everyone**                   | Every person                                                                    |
| `role:<ROLE_ID>`      | **Role**                       | Holders of the role                                                             |
| `group:<GROUP_ID>`    | **Group**                      | Members of the group                                                            |
| `org:<ORG_ID>`        | **Organization**               | People affiliated with the organization                                         |
| `type:<USER_TYPE_ID>` | **User type**                  | People of that user type                                                        |
| `attr:<name>=<value>` | **Attribute**                  | People with a user attribute of that name, one of whose values equals the value |
| Free text with no `:` | **Everyone (unstructured: …)** | Every person — written before structured audiences existed                      |

## Preferences

| Field        | Values                                                                                               |
| ------------ | ---------------------------------------------------------------------------------------------------- |
| **Kind**     | `OPT_OUT` (Opt-out), `OBJECTION` (Objection), `RESTRICTION` (Restriction), `PREFERENCE` (Preference) |
| **Category** | `CHANNEL` (Channel), `TOPIC` (Topic), `FREQUENCY` (Frequency), `BRAND` (Brand)                       |
| **Source**   | `SUBJECT` (Your choice), `TENANT_DEFAULT` (Default)                                                  |

## Events, evidence and delivery

| Privacy event type                                          | Emitted when                                                 |
| ----------------------------------------------------------- | ------------------------------------------------------------ |
| `CONSENT_EVENT_APPENDED`                                    | A consent event is recorded                                  |
| `CONFIG_TRANSITIONED`                                       | A registry object or notice version changes status           |
| `DECISION_EVALUATED`                                        | The policy engine reports a privacy decision                 |
| `PREFERENCE_CHANGED`                                        | A person's preference changes                                |
| `SUBJECT_MERGED`, `SUBJECT_RETIRED`, `RELATIONSHIP_CHANGED` | A privacy subject or a relationship changes                  |
| `CACHE_INVALIDATION_REQUESTED`                              | The consent state the policy engine reads has been rewritten |

| Evidence category   | Holds                                                                                                     |
| ------------------- | --------------------------------------------------------------------------------------------------------- |
| `CONSENT_EVENT`     | Consent events and receipt builds                                                                         |
| `DECISION`          | Privacy decisions reported by the policy engine                                                           |
| `CONFIG_TRANSITION` | Status changes in the registry                                                                            |
| `ADMIN_ACTION`      | Operator actions — replays, governed exceptions, notice edits, retention erasures, tenant default changes |
| `DELIVERY`          | Webhook delivery outcomes                                                                                 |
| `PREFERENCE_EVENT`  | Preference changes                                                                                        |

| Outbox status                    | Delivery status                  | Acknowledgement status                                               |
| -------------------------------- | -------------------------------- | -------------------------------------------------------------------- |
| `PENDING`, `PUBLISHED`, `FAILED` | `PENDING`, `DELIVERED`, `FAILED` | `COMPLETED`, `UNSUPPORTED`, `RETRYABLE_FAILURE`, `PERMANENT_FAILURE` |

### Webhook delivery

Each delivery is an HTTP `POST` with a JSON body and three headers the receiving system uses to check it:

| Header                | Holds                                                                              |
| --------------------- | ---------------------------------------------------------------------------------- |
| `X-OpenIAM-Event-Id`  | The event id. Deliveries are at least once; use it to discard duplicates           |
| `X-OpenIAM-Timestamp` | When the delivery was signed, in milliseconds since the epoch                      |
| `X-OpenIAM-Signature` | Lowercase hexadecimal HMAC-SHA256, keyed with the endpoint's signing secret, of \` |

The receiving system recomputes the signature, compares it in constant time, and refuses a timestamp further from its own clock than the endpoint's **Tolerance (seconds)** — `300` unless set otherwise.

## Audit actions

The Webconsole and SelfService write these to the OpenIAM audit log; search them in **Administration → Log Viewer**.

| Action                      | Written when                                                                                                                                                                                              |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `PRIVACY_REGISTRY_CHANGE`   | A purpose, activity or lawful authority is created, edited or transitioned; an activity is associated or dissociated                                                                                      |
| `PRIVACY_NOTICE_CHANGE`     | A notice, notice version or translation is created, edited or transitioned                                                                                                                                |
| `PRIVACY_CONSENT_EVENT`     | A person records a consent choice in the Privacy Center or on the consent-required page, or an administrator uses **Record event**                                                                        |
| `PRIVACY_PREFERENCE_CHANGE` | A person changes a preference                                                                                                                                                                             |
| `PRIVACY_OPERATOR_ACTION`   | An administrator replays a delivery or an outbox event, or raises a governed exception                                                                                                                    |
| `PBAC_REQUEST`              | The policy engine decides a request; privacy decisions carry class `PRIVACY` — see [Privacy decisions](https://docs.openiam.com/administration-guide/pbac/privacy-decisions.md#decision-log-and-evidence) |

The Privacy module's own evidence chain is separate from the audit log and is not aged out by audit retention.

## Properties

All of these are service properties set by the deployment owner, with a restart; none appears under **System Properties**.

| Property                                                                                | Service                     | Default                            | What it decides                                                                                                                 |
| --------------------------------------------------------------------------------------- | --------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `org.openiam.privacy.outbox.poll.ms`                                                    | `privacy-manager`           | `5000`                             | How often pending outbox events are published                                                                                   |
| `org.openiam.privacy.outbox.batch.size`                                                 | `privacy-manager`           | `100`                              | Events published per run                                                                                                        |
| `org.openiam.privacy.outbox.max.attempts`                                               | `privacy-manager`           | `10`                               | Attempts before an outbox event is `FAILED`                                                                                     |
| `org.openiam.privacy.outbox.backoff.base.ms`                                            | `privacy-manager`           | `30000`                            | First retry delay; it doubles with each attempt                                                                                 |
| `org.openiam.privacy.outbox.backoff.max.ms`                                             | `privacy-manager`           | `3600000`                          | Longest retry delay                                                                                                             |
| `org.openiam.privacy.delivery.poll.ms`                                                  | `privacy-manager`           | `5000`                             | How often due webhook deliveries are sent                                                                                       |
| `org.openiam.privacy.delivery.batch.size`                                               | `privacy-manager`           | `100`                              | Deliveries sent per run                                                                                                         |
| `org.openiam.privacy.delivery.max.attempts`                                             | `privacy-manager`           | `10`                               | Attempts before a delivery is a permanent failure                                                                               |
| `org.openiam.privacy.delivery.backoff.base.ms`                                          | `privacy-manager`           | `30000`                            | First delivery retry delay; it doubles                                                                                          |
| `org.openiam.privacy.delivery.backoff.max.ms`                                           | `privacy-manager`           | `3600000`                          | Longest delivery retry delay                                                                                                    |
| `org.openiam.privacy.retention.sweep.enabled`                                           | `privacy-manager`           | `false`                            | Whether the evidence retention sweep runs at all                                                                                |
| `org.openiam.privacy.retention.sweep.cron`                                              | `privacy-manager`           | `0 0 3 * * *`                      | When it runs, once enabled                                                                                                      |
| `org.openiam.privacy.enforcement.projection.ttl.seconds`                                | `privacy-manager`           | `86400`                            | Lifetime of the enforcement state the policy engine reads; zero or less keeps it until overwritten                              |
| `org.openiam.privacy.tenant.id`                                                         | `pbac-manager`, SelfService | `default`                          | The privacy tenant the policy engine reads and the Privacy Center writes                                                        |
| `org.openiam.pbac.privacy.resolve.timeout.ms`, `…resolve.threads`, `…no.policy.outcome` | `pbac-manager`              | `250`, `16`, `DENY`                | See [Privacy decisions](https://docs.openiam.com/administration-guide/pbac/privacy-decisions.md#where-consent-state-comes-from) |
| `org.openiam.pbac.gateway.enabled` and four more                                        | `openiam-esb`               | `false`                            | See [Privacy decisions](https://docs.openiam.com/administration-guide/pbac/privacy-decisions.md#the-access-gateway)             |
| `org.openiam.privacy.consent.redirect.enabled`                                          | `openiam-esb`               | `true`                             | Whether a browser refused only for consent is sent to the consent page                                                          |
| `org.openiam.privacy.consent.page.url`                                                  | `openiam-esb`               | `/selfservice-v2/consent-required` | The consent page, where the content provider names none                                                                         |

## Rejection messages

The Webconsole shows the Privacy module's reason as the toast. The code in brackets names the rule.

| Message                                                                                                                                                                                                                                                                           | Rule                                                         |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| `Illegal governed transition <FROM> -> <TO> (KRN-005)`                                                                                                                                                                                                                            | The transition is not in the lifecycle table                 |
| `A <type> version in state <STATUS> is immutable and cannot be updated (PUR-005)`                                                                                                                                                                                                 | `DEPRECATED` and `RETIRED` rows cannot be edited             |
| `… requires an accountable owner (ownerRef) (PUR-001)`, `… requires a description (PUR-001)`, `… requires a lawful authority (PUR-001)`, `… an ACTIVE lawful authority within its validity window (PUR-001)`, `… at least one ACTIVE association to an ACTIVE activity (PUR-001)` | Purpose activation                                           |
| `Lawful authority requires a typeCode (PUR-003)`                                                                                                                                                                                                                                  | **Type code** is empty                                       |
| `Purpose and activity already have an ACTIVE association (PUR-002)`                                                                                                                                                                                                               | The activity is already associated                           |
| `Audience entry '<entry>' has unknown kind '<kind>'; expected one of role, group, org, type, attr`, `… has an empty value`, `… must be attr:name=value`, `… mixes free text with selectors; use kind:value or everyone`                                                           | The audience does not parse                                  |
| `Notice activation requires … (NOT-001)`                                                                                                                                                                                                                                          | A required notice field or covered purpose is missing        |
| `Notice approval by its author violates the segregation of duties (NOT-003)`, `Notice approval by its last editor violates the segregation of duties (NOT-003)`                                                                                                                   | The approver wrote or last edited the version                |
| `Locale '<tag>' is not an active system language (NOT-005)`                                                                                                                                                                                                                       | The locale is not in the language catalog                    |
| `The system language catalog is unavailable; the locale cannot be validated (NOT-005)`                                                                                                                                                                                            | The catalog could not be read; the save is refused           |
| `A live translation already exists for this notice version and locale (NOT-005)`                                                                                                                                                                                                  | The version already has this locale                          |
| `A notice version in state <STATUS> is immutable and cannot be updated (NOT-002)`                                                                                                                                                                                                 | Deprecated and retired notice versions cannot be edited      |
| `Purpose is unknown, inactive or cross-tenant`                                                                                                                                                                                                                                    | A consent event names a purpose that is not `ACTIVE`         |
| `Consent is not the lawful basis for this purpose (PUR-003)`                                                                                                                                                                                                                      | Nobody can consent to a purpose with a non-consent authority |
| `GRANT requires an ACTIVE notice version reference of the same tenant (NOT-002)`                                                                                                                                                                                                  | A grant without the notice the person read                   |
| `Consent choices require a clear affirmative action (CON-003)`, `Preselected consent controls are not accepted (CON-003)`                                                                                                                                                         | The affirmative choice was not recorded                      |
| `Bundled multi-purpose scope is rejected by design (CON-002)`                                                                                                                                                                                                                     | The event's activity or data scope lists several items       |
| `CORRECTION cannot be the first event of an aggregate (CON-009)`                                                                                                                                                                                                                  | A correction with nothing to correct                         |
| `Only FAILED outbox events may be replayed (EVT-003)`                                                                                                                                                                                                                             | The outbox event is not `FAILED`                             |
| `A governed exception requires a documented reason (EVT-006)`                                                                                                                                                                                                                     | **Reason** was empty                                         |

## Tables

Everything lives in the `privacy` database. Every table carries `TENANT_ID`.

| Table                                                                                | Holds                                                                                                         |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| `PRIVACY_LAWFUL_AUTHORITY`                                                           | Lawful authorities, one row per version                                                                       |
| `PRIVACY_ACTIVITY`                                                                   | Processing activities, one row per version                                                                    |
| `PRIVACY_PURPOSE`                                                                    | Purposes, one row per version; `AUDIENCE` holds the selectors, up to 1,024 characters                         |
| `PRIVACY_PURPOSE_ACTIVITY`                                                           | Purpose-to-activity associations                                                                              |
| `PRIVACY_NOTICE`, `PRIVACY_NOTICE_VERSION`                                           | Notices, and their versions per locale and revision; `PRIVACY_PURPOSE_NOTICE_XREF` holds the covered purposes |
| `PRIVACY_SUBJECT`, `PRIVACY_SUBJECT_IDENTITY_LINK`, `PRIVACY_SUBJECT_RELATIONSHIP`   | Privacy subjects and the OpenIAM users they are linked to                                                     |
| `PRIVACY_CONSENT_EVENT`, `PRIVACY_CONSENT_STATE`                                     | The consent ledger and the current state derived from it                                                      |
| `PRIVACY_TENANT_CONSENT_CONFIG`                                                      | Per-tenant consent rules; with no row, the strict rules apply                                                 |
| `PRIVACY_PREFERENCE_EVENT`, `PRIVACY_PREFERENCE_STATE`, `PRIVACY_PREFERENCE_DEFAULT` | Preferences and tenant defaults                                                                               |
| `PRIVACY_EVIDENCE`                                                                   | The evidence chain, by segment                                                                                |
| `PRIVACY_RETENTION_POLICY`                                                           | Retention periods and legal holds per evidence category                                                       |
| `PRIVACY_OUTBOX`, `PRIVACY_INBOX`                                                    | Events to publish, and the record of events already processed                                                 |
| `PRIVACY_WEBHOOK_ENDPOINT`, `PRIVACY_EVENT_DELIVERY`                                 | Webhook endpoints and each delivery to them                                                                   |

{% hint style="danger" %}
**Never write to these tables directly.** The consent ledger and the evidence chain are hash-chained: an inserted, changed or deleted row breaks verification from that point on, permanently, and the broken chain is what an auditor will see. Read them, if you must, through a read-only account.
{% endhint %}

The content provider's **Consent page URL** is `CONTENT_PROVIDER.CONSENT_URL` in the `openiam` schema, up to 300 characters.

## Related

* [Record privacy and consent](https://docs.openiam.com/administration-guide/privacy.md) — the section's starting point
* [Privacy decisions](https://docs.openiam.com/administration-guide/pbac/privacy-decisions.md) — the privacy record, obligations and decision-log attributes
* [Audit actions and retention](https://docs.openiam.com/administration-guide/reference/audit-actions-and-retention.md) — the platform audit log these actions are written to


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.openiam.com/administration-guide/privacy/privacy-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
