hai, how can print all users id with email ?.. Regards sekara...
raja raja wrote:
hai,
how can print all users id with email ?..
You mean all users who did enter an email in their profile? #foreach($u in $xwiki.searchDocuments(", BaseObject obj, StringProperty e where obj.name = doc.fullName and obj.className = 'XWiki.XWikiUsers' and e.id.id = obj.id and e.id.name = 'email' and e.value <> '' order by doc.name")) * $u #end -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi Sekara, e.g. #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.XWikiUsers'") #foreach ($item in $xwiki.searchDocuments($sql)) #set($userDoc = $xwiki.getDocument($item)) * [$item] $userDoc.email #end Or in the table format: #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.XWikiUsers'") {table} User|Alias|Email #foreach ($item in $xwiki.searchDocuments($sql)) $xwiki.getUserName($item)|[$item]|$xwiki.getDocument($item).email #end {table} The full User-info (See http://n2.nabble.com/fetch-the-email-address-of-a-user-td505314.html#a505314) #set($userDoc = $xwiki.getDocument("XWiki.UserId")) $userDoc.first_name $userDoc.last_name $userDoc.email Regards, Alla raja raja wrote:
hai,
how can print all users id with email ?..
Regards sekara... _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- View this message in context: http://n2.nabble.com/Xwiki-users-Email-tp735379p735675.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (3)
-
adoro -
raja raja -
Sergiu Dumitriu