Consent Manager
Understand how Consent Manager tracks consent states and provides APIs for consumers to view and manage their consents.
Consent Manager manages the consent behind each Consumer Data Right (CDR) sharing arrangement, from the accredited data recipient's (ADR's) request through consumer authorisation to withdrawal or the end of the sharing period.
It stores each consent and its current status, together with information supplied by the ADR or by your organisation as the data holder.
Consent lifecycle
When an ADR starts a request, Consent Manager creates a consent from the ADR's Pushed Authorization Request (PAR). It then records the consumer's decision and manages later changes.
Consent request (PAR) → AwaitingAuthorization → Authorized or Rejected → Revoked, AdrBlocked, or end of the sharing period
| Status | When it applies |
|---|---|
AwaitingAuthorization | The ADR's request has been received and the consumer has not yet completed authorisation. |
Authorized | The consumer has authorised the sharing arrangement. |
Rejected | The consumer declined, or the authorisation journey was abandoned. Record the stage with abandonedByStage – it is required with this status and is used for CDR metrics. |
Revoked | The sharing arrangement was withdrawn – by the consumer on your consumer dashboard, or by the ADR. |
AdrBlocked | Access is blocked because of the ADR's status. |
A consent also stops being usable when its sharing period ends. See Consents for the permitted status changes and the fields required for each.
Sharing arrangements and amendments
Each consent belongs to a sharing arrangement, identified to the ADR by cdr_arrangement_id. When an ADR amends an arrangement, a new consent is created for it. The previous consent is revoked when the first token is issued for the new consent, not when the amendment is authorised.
Capabilities
| Capability | What it does |
|---|---|
| Consent creation | Creates a consent from the ADR's PAR before the consumer authorises it |
| Consent status management | Tracks each consent through authorisation, rejection, withdrawal and blocking |
| Account selection | Records the accounts the consumer authorised, and lets your organisation enable or disable individual accounts later using supplementaryInformation.accountIdDetails |
| Structured error handling | Returns defined error codes and messages so your integration can handle rejected or invalid consent operations consistently |
Consumer dashboard
Under the CDR rules, your organisation (the data holder) must provide a consumer dashboard where consumers can view and withdraw their sharing arrangements.
Consent Manager provides the APIs to build the dashboard into your existing web or mobile banking digital channels. Your organisation provides the consumer-facing interface.
When a consumer withdraws a sharing arrangement on your dashboard, Ozone revokes the related consents and notifies the ADR through its CDR arrangement revocation endpoint. You don't need to notify the ADR yourself.
See Consent groups for the sharing arrangement operations used by the dashboard, and Consents for individual consent operations.
Building the dashboard
| Dashboard need | Consent Manager operation |
|---|---|
| Sharing arrangements the consumer authorised | Get consents for a user (GET /psu/USERID/consents) |
| Sharing arrangements authorised by someone else that include the consumer's accounts – for example a joint account holder or a nominated representative of a business | Get consents for an account (GET /accounts/{accountId}/consents), for each of the consumer's accounts |
| The current and earlier consents of an amended arrangement | Get consents in a consent group (GET /consent-groups/{consentGroupId}/consents) |
| The history of changes to a consent | Get consent audit (GET /consents/{consentId}/audit) |
| Withdrawing an arrangement | Revoke consents in a consent group |
Joint accounts
Under the CDR rules, a joint account holder can stop – and later restart – data sharing from a joint account in an existing arrangement. The arrangement stays active, and sharing continues from the other accounts in it. The ADR is not involved and the arrangement is not re-authorised.
Record the change with PATCH /consents/{consentId}, using supplementaryInformation.accountIdDetails:
- Set
accountIdstatustodisabledfor the joint account to stop sharing. Ozone removes the account from the accounts it shares data from. - Set
accountIdstatustoenabledto restart sharing. Ozone adds the account back.
The account details stay on the consent, so your dashboard can still show the joint account as inactive, as the CDR Consumer Experience Guidelines require. To apply a change to every arrangement that includes the joint account, find them with GET /accounts/{accountId}/consents and update each one.
Updated 27 days ago