---
title: "SQL-032: Find current admin user type for provider EFT"
summary: Retrieves the EXT_USER_TYPE_SEQ_NUM for the admin user of a given customer ID.
status: draft
owner: <owner>
last_reviewed: 2026-07-24
library: SAIF.Business.External.Users
reference_type: package
---

# SQL-032: Find current admin user type for provider EFT

Retrieves the `EXT_USER_TYPE_SEQ_NUM` of the admin user record for a given `CUSTOMER_ID`, used as a lookup step before updating the EFT authorization contact email via `UpdateAdminUserEmail`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-032 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsUserType` |
| **Criteria property** | Local SQL |
| **Lifecycle method** | `UpdateAdminUserEmail` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:inCustomerID` | Input | Decimal | N/A | Customer ID to find the admin user type for. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [EXT_USER_TYPE](../database-tables.md#ext_user_type) | SELECT | `EXT_USER_TYPE_SEQ_NUM`, `CUSTOMER_ID`, `ADMIN_USER_FLAG` |

## Sample SQL

```sql
SELECT EXT_USER_TYPE_SEQ_NUM
FROM EXT_USER_TYPE
WHERE CUSTOMER_ID = :inCustomerID
  AND ADMIN_USER_FLAG = 'Y'
```

## Operations and processes
- [User type management](../operations/user-type-management.md)

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