Hi.
As an admin with a wiki working with Open ID Connect we try to make house keeping by email addresses. All users with an email not found in our azure ad will be spotted and manually deleted. But this ignores all users that do not have any email address. So I wrote a little velocity script:
#set ($users = $services.query.xwql('from doc.object(XWiki.XWikiUsers) as user').setWiki('xwiki').addFilter('unique').execute())
#foreach ($user in $users)
#if(!$services.user.getProperties($user).email)
1. [[$user>>doc:xwiki:$user]]
#end
#end
The execution takes some time. Is there a smarter query to find those users?
Regards, Simpel