List Inactive Users

Last modified by Vincent Massol on 2021/03/18 11:28

cogList users having the "inactive" property set
TypeSnippet
Category
Developed by

Sergiu Dumitriu

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Table of contents

Description

{{velocity}}{{html}}
<ul>
#foreach($d in $xwiki.wrapDocs($xwiki.searchDocuments(", BaseObject obj, IntegerProperty act where obj.className = 'XWiki.XWikiUsers' and obj.name = doc.fullName and act.id.id = obj.id and act.id.name = 'active' and act.value <> 1")))
 <li>$xwiki.getUserName($d.fullName) (<a href="$d.getURL('save', 'XWiki.XWikiUsers_0_active=1')&xredirect=$doc.getURL()">activate</a>)</li>
#end
</ul>
{{/html}}{{/velocity}}
     

Get Connected