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

# SQL-037: Update a group membership

This statement is the `UpdateSQL` implementation of `clsMenuSecurityUser.Criteria`, executed from `BeforeUpdate` against `MENU_SECURITY_USER`. Update a group membership.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:SecurityGroupTxt` | Input | String | 255 | Security-group name |
| `:MenuUser` | Input | String | 30 | Menu user account name |
| `:MenuUserID` | Input | String | 11 | Employee ID stored alongside the membership |
| `:MenuSecurityUserSeq` | Input | Decimal | N/A | Membership row key |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_SECURITY_USER](../database-tables.md#menu_security_user) | UPDATE | SECURITY_GROUP_TXT, MENU_USER, MENU_USER_EMPLID (SET); MENU_SECURITY_USER_SEQ_NUM (WHERE) |

## Sample SQL

```sql
-- Update a group membership
Update
  MENU_SECURITY_USER
Set
  SECURITY_GROUP_TXT = :SecurityGroupTxt,
  MENU_USER = :MenuUser,
  MENU_USER_EMPLID = :MenuUserID
Where
  MENU_SECURITY_USER.MENU_SECURITY_USER_SEQ_NUM = :MenuSecurityUserSeq
```

## Operations and processes

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

## Business rules

- [BR-MENU-020](../business-rules.md#br-menu-020-single-row-write-verification): Single-row write verification

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

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