Lucee Function Reference

getauthuser()

Returns the name of the currently authenticated user.
This function checks the application's authentication system and returns the username of the logged-in user.
If no user is authenticated, it returns an empty string.
The function first attempts to retrieve credentials from the application security context, and if none exist,
it falls back to checking the HTTP servlet request for remote user information.

Example

getauthuser():string

Arguments

This function has no arguments