List All Wiki Pages Creators Snippet

List all the users that have created at least one page in the wiki

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

Users who have created at least one page on this wiki (note that subwikis are not taken into account):

  • Admin
  • asiri
  • dpolistchuck
  • ganji
  • GuillaumeLerouge
  • JeromeVelociter
  • jurevert
  • jvdrean
  • jvelociter
  • lucaa
  • ludovic
  • LudovicDubost
  • marta
  • mixtli
  • polx
  • prathap
  • rrodriguez
  • rssh
  • Sergiu
  • StephaneBarbey
  • ThomasMortagne
  • VincentMassol
  • yish
Version 9.1 last modified by VincentMassol on 28/06/2008 at 09:17

Comments 0

No comments for this document

Attachments 0

No attachments for this document

Creator: jvdrean on 2008/06/27 18:52
This wiki is licensed under a Creative Commons license
1.4.1.10194