List All Wiki Pages Creators

Last modified by Ecaterina Moraru (Valica) on 2021/03/18 11:28

cogList all the users that have created at least one page in the wiki
TypeSnippet
Category
Developed by

Jean-Vincent Drean

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

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)
#end

A 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)
#end

Example

Here is an example on XWiki 2.6 of the users who have created at least one page:

listAllWikiPagesCreators.png

 

Tags:
     

Get Connected