List All Wiki Pages Creators
Last modified by Ecaterina Moraru (Valica) on 2026/06/02 17:54
| List all the users that have created at least one page in the wiki |
| Type | Snippet |
| Category | |
| Developed by | |
| Rating | |
| License | GNU Lesser General Public License 2.1 |
Table of contents
Description
Code
More efficient, but requires programming rights
#set ($list = $xwiki.search("select distinct doc.author from XWikiDocument as doc where doc.author != ''", 0, 0))
#foreach ($item in $list)
* $xwiki.getLocalUserName($item)
#endA bit slower, doesn't list global users in virtual wikis, but doesn't require programming rights
#set ($list = $xwiki.searchDocuments("where exists (from XWikiDocument doc2 where doc2.author = doc.fullName and doc2.fullName <> doc.fullName)", 0, 0))
#foreach ($item in $list)
* $xwiki.getLocalUserName($item)
#endExample
Here is an example on XWiki 2.6 of the users who have created at least one page:
