Forums / Developer / all users

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

all users

Author Message

Mazen Alsibai

Tuesday 08 November 2005 7:11:13 am

Hi:
how can i fetch all users registered in my database?
thanks

Łukasz Serwatka

Wednesday 09 November 2005 11:30:38 pm

You can do tree fetch from User accounts

fetch(content,tree ...)

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/modules/content/fetch_functions/tree

But this will be inefficient if you have e.g 15000 users.

All users are in ezuser table, so with one simple SQL query you can fetch data and via custom operator return array then display data using {section} or {foreach}

http://ez.no/products/ez_publish_cms/documentation/development/extensions/template_operator

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog