SQL Flow Field Guide

ALTER USER

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

changes a user

What changes

Input
catalog
Output or change
security catalog: user

Syntax at a glance

ALTER USER user_name WITH <set_item> [ ,...n ] [;]

Work example

A database user needs a planned login mapping, schema, or authentication update.

Check principal identity, orphan status, role membership, and application ownership before changing the mapping.

Check your work The intended login maps to one database user with the approved role set.

Open Microsoft Learn for full syntax, permissions, and details for your version.