---
title: "SQL-036: Update a security-group grant"
summary: Update a security-group grant
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-17
library: SAIF.Business.Menu
reference_type: package
---

# SQL-036: Update a security-group grant

This statement is the `UpdateSQL` implementation of `clsMenuSecurity.Criteria`, executed from `BeforeUpdate` against `MENU_SECURITY`. Update a security-group grant.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-036 |
| **Operation type** | Update |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | `[unqualified]`** |
| **Command type** | Text |
| **Business object** | `clsMenuSecurity` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:MenuItemSeqNum` | Input | Decimal | N/A | Menu item being secured |
| `:SecurityGroup` | Input | String | 255 | Security-group name granted access |
| `:UserId` | Input | String | 30 | Acting user, trimmed and upper-cased, stamped as `UPDATE_USER` |
| `:MenuSecuritySeqNum` | Input | Decimal | N/A | Security grant key |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_SECURITY](../database-tables.md#menu_security) | UPDATE | MENU_ITEM_SEQ_NUM, SECURITY_GROUP_TXT, UPDATE_DATE, UPDATE_USER (SET); MENU_SECURITY_SEQ_NUM (WHERE) |

## Sample SQL

```sql
-- Update a security-group grant
Update
  MENU_SECURITY
Set
  MENU_ITEM_SEQ_NUM = :MenuItemSeqNum,
  SECURITY_GROUP_TXT = :SecurityGroup,
  UPDATE_DATE = SYSDATE,
  UPDATE_USER = :UserId
Where
  MENU_SECURITY.MENU_SECURITY_SEQ_NUM = :MenuSecuritySeqNum
```

## Operations and processes

- [Update or delete a maintained object](../operations/op-menu-07-update-delete-maintained-object.md)

## Business rules

- [BR-MENU-016](../business-rules.md#br-menu-016-audit-stamp-on-insert-and-update): Audit stamp on insert and update
- [BR-MENU-020](../business-rules.md#br-menu-020-single-row-write-verification): Single-row write verification
- [BR-MENU-021](../business-rules.md#br-menu-021-cascading-child-security-group-save): Cascading child security-group save

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- SAIF.Business.Menu/clsMenuSecurity.vb
