Load users from database

Hello

I want to load all registered users from the database. Currently i have 2 users. With this code:

$entity_type = 'elgg_users_entity';
$entities = elgg_get_entities(array('type' => $entity_type));

I only get one user.

So how can i get all users from the database?

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking