(no commit message)
[openafs-wiki.git] / TWiki / VarUSERINFO.mdwn
1 <a name="VarUSERINFO"></a>
2
3 ### <a name="USERINFO{&quot;name&quot;} -- retrieve det"></a> USERINFO\{"name"\} -- retrieve details about a user
4
5 - Syntax: `%USERINFO%`
6 - Expands to: `admin, Main.admin, ` (comma-separated list of the username, wikiusername, and emails)
7 - With formatted output, using tokens `$emails`, `$username`, `$wikiname`, `$wikiusername`, `$groups` and `$admin` ($admin returns 'true' or 'false'):
8   - Example: `%USERINFO{ format="$username is really $wikiname" }%`
9   - Expands to: `admin is really admin`
10 - Retrieve information about another user:
11   - Example: `%USERINFO{ "TWikiGuest" format="$username is really $wikiname" }%`
12   - Expands to: ``
13   - **_Note:_** The parameter should be the wikiname of a user. Since TWiki 4.2.1, you can also pass a login name. You can only get information about another user if the `{AntiSpam}{HideUserDetails}` configuration option is not enabled, or if you are an admin. _(User details are hidden in this TWiki)_
14 - Related: [[USERNAME|Main/VarUSERNAME]], [[WIKINAME|Main/VarWIKINAME]], [[WIKIUSERNAME|Main/VarWIKIUSERNAME]], [[TWikiUserAuthentication]], [[ChangeEmailAddress]]