Quantcast
Channel: XWiki Forum - Latest topics
Viewing all articles
Browse latest Browse all 1219

How to count number of active users in wiki

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 1219

Trending Articles