---
title: "SQL-054: clsUserDenySelfRegistration"
summary: Delete statement for clsUserDenySelfRegistration.
status: draft
owner: <owner>
last_reviewed: 2026-07-24
library: SAIF.Business.External.Users
reference_type: package
---

# SQL-054: clsUserDenySelfRegistration

Deletes a `EXT_USER_DENY_SELF_REG` block-list entry identified by its composite key `(CUSTOMER_GROUP_ID, EXT_USER_TYPE_CODE)`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-054 |
| **Operation type** | Delete |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsUserDenySelfRegistration` |
| **Criteria property** | `DeleteSQL` |
| **Lifecycle method** | `BeforeDelete` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:SourceSystemGroupID` | Input | String | 30 | Customer group ID (composite key part 1). |
| `:UserTypeCode` | Input | String | 5 | User type code (composite key part 2). |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [EXT_USER_DENY_SELF_REG](../database-tables.md#ext_user_deny_self_reg) | DELETE | `CUSTOMER_GROUP_ID`, `EXT_USER_TYPE_CODE` |

## Sample SQL

```sql
DELETE EXT_USER_DENY_SELF_REG
WHERE EXT_USER_DENY_SELF_REG.CUSTOMER_GROUP_ID = :SourceSystemGroupID
  AND EXT_USER_DENY_SELF_REG.EXT_USER_TYPE_CODE = :UserTypeCode
```

## Operations and processes
- [Deny self-registration check](../operations/deny-self-registration-check.md)

## Business rules
- [BR-EU-02: Deny-self-registration block-list](../business-rules.md#br-eu-02-deny-self-registration-block-list)

> **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\clsUserDenySelfRegistration.vb`
