Tools
Understanding %USER% and %ACCOUNT_NAME% in Windows Authentication Configurations
Serv-U provides the %ACCOUNT_NAME% macro to support account name-based directory structures.
First published date
Last published date
Overview
In Serv-U MFT, macros such as %USER% can be used when configuring Home Directories, Directory Access Rules, Virtual Paths, and other path-based settings.
For users authenticated through Windows Authentication, %USER% resolves to the user's login ID. In Serv-U 2026.3, Windows Authentication users are identified using their User Principal Name (UPN). As a result, %USER% resolves to the full UPN value, such as John.Smith@domain.com.
In environments where existing directory structures are based on Windows account names, this behavior may result in new folders being created using the full UPN instead of the existing account name-based folder structure.
To support account name-based directory structures, Serv-U provides the %ACCOUNT_NAME% macro.
Product section
Resolution
%ACCOUNT_NAME% addresses the part of %USER% that is left to '@' in the User Principal Name.
Login ID: John.Smith@domain.com
%USER% = John.Smith@domain.com
%ACCOUNT_NAME% = John.Smith
For a login id without '@' in it %ACCOUNT_NAME% is the same as %USER%.