SQL Flow Field Guide

CREATE USER

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

defines a user

What changes

Input
catalog
Output or change
security catalog: user

Syntax at a glance

CREATE USER user_name [ { FOR | FROM } LOGIN login_name ] [ WITH <limited_options_list> [ , ... ] ] [ ; ]

Work example

A database login or external identity needs a database principal.

Map the principal to its authentication source, default schema, role membership, and removal process.

Check your work The user maps to the intended identity and has no role beyond the job requirement.

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