Hi XWiki Community,
I managed to have a counter of users with this velocity code:
$services.query.hql("select count(distinct obj.name) from BaseObject obj where obj.className = 'XWiki.XWikiUsers'").execute()[0]
Or this one:
$services.user.group.getMembers('xwiki:XWiki.XWikiAllGroup').size()
How can I adapt it to count only active users?
How is the “active” field named in the database?
Thank you in advance!
Luc
4 posts - 2 participants