---
title: "SQL-010: Retrieve audit assignment override"
summary: Retrieves a policy-level audit assignment override from PA_ASSIGN_OVERRIDE.
status: draft
owner: <owner>
last_reviewed: 2026-07-24
library: SAIF.Business.External.Users
reference_type: package
---

# SQL-010: Retrieve audit assignment override

Retrieves the default auditor ID and do-not-assign auditor ID for a given policy number from `PA_ASSIGN_OVERRIDE`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-010 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditAssignmentOverride` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | Decimal | 10 | Policy number to retrieve the override for. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PA_ASSIGN_OVERRIDE](../database-tables.md#pa_assign_override) | SELECT | `DEFAULT_PA_AUDITOR_ID`, `DONOT_ASSIGN_PA_AUDITOR_ID`, `POLICY_NUM` |

## Sample SQL

```sql
SELECT
    P.DEFAULT_PA_AUDITOR_ID AS DefaultAuditorID,
    P.DONOT_ASSIGN_PA_AUDITOR_ID AS DoNotAssignAuditorID,
    P.POLICY_NUM AS PolicyNumber
FROM PA_ASSIGN_OVERRIDE P
WHERE P.POLICY_NUM = :PolicyNumber
```

## Operations and processes
- [Auditor assignment / override](../operations/auditor-assignment-override.md)

## Business rules
- [BR-EU-03: Audit-assignment auditor distinctness](../business-rules.md#br-eu-03-audit-assignment-auditor-distinctness)

> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.External.Users\clsAuditAssignmentOverride.vb`
