---
title: "SQL-030: Retrieve all menu security users"
summary: Retrieves all records from MENU_SECURITY_USER without filtering.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Menu
reference_type: package
---

# SQL-030: Retrieve all menu security users

Retrieves all menu security user records from `MENU_SECURITY_USER` without filtering. Note: the DB analysis documents that `BeforeRetrieve` issues an `AddParm("MenuUser", ...)` call in this branch even though the SQL text contains no `:MenuUser` bind variable — a source-level anomaly.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-030 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsMenuSecurityUserCollection` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` (MenuUser empty) / `AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:MenuUser` | Input | String** | 30 | Bound from `MyCriteria.MenuUser` — however, no `:MenuUser` bind variable appears in the SQL text (source anomaly).* |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_SECURITY_USER](../database-tables.md#menu-security-user) | SELECT | `MENU_SECURITY_USER_SEQ_NUM`, `SECURITY_GROUP_TXT`, `MENU_USER`, `MENU_USER_ID` |

## Sample SQL

```sql
Select MENU_SECURITY_USER.MENU_SECURITY_USER_SEQ_NUM as MenuSecurityUserSeq,
       MENU_SECURITY_USER.SECURITY_GROUP_TXT as SecurityGroupTxt,
       MENU_SECURITY_USER.MENU_USER as MenuUser,
       MENU_SECURITY_USER.MENU_USER_ID as MenuUserID
From MENU_SECURITY_USER
```



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