You are here: Foswiki>System Web>Category>UserDocumentationCategory>Macros>VarUSERNAME (2024-12-23, UnknownUser)Edit Attach
Foswiki makes names available in three formats: USERNAME like jsmith
, WIKINAME like JohnSmith
and WIKIUSERNAME like Main.JohnSmith
. Un-authenticated users are all WikiGuest.
This macro is an alias for the USERINFO macro with a fixed format="$username"
.
The login username is considered "protected" information by default and will not be revealed to non-admin users.
Parameter | Description | |
---|---|---|
"name" | WikiName or login username. | current user |
%USERNAME%
expands to guest
%USERNAME{AdminUser}%
expands to == When used in a template topic, this macro will be expanded when the template is used to create a new topic. See TemplateTopics#TemplateTopicsVars for details
REMOTE_USER, USERINFO, WIKINAME, WIKIUSERNAME, UserAuthentication
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback