How to list out active users in eZ publish?

CMS System:

eZ publish

Issue:

How is it possible to list out all users that been completing the user registertion in eZ publish with clinking on the link in the confirmation e-mail and how can we list out user who not been completing the registration.

Solution:

The example code under will loop all users that is located under the user group with node ID 162.

{def $allusers=fetch( 'content', 'list',
                           hash( 'parent_node_id', 162, 'depth', 1 ) )}

{section var=user loop=$allusers}
    {if $user.object.data_map.user_account.content.is_enabled}
      User enabled
    {else}                      
      User not enabled
   {/if}
{/section}

{/def}

NB: If you have many users in your user group this loop can demand much CPU resources.

BuildCMS Crowdprojecting