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
devs(a)xwiki.org
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.