eZ Community » Forums » Developer » get user list of a particular group...
expandshrink

get user list of a particular group ezpublish

get user list of a particular group ezpublish

Sunday 28 February 2016 4:13:31 am - 2 replies

I have group id. I want to find all user that belongs to that group. Is there any kernel method to do that?

Monday 29 February 2016 9:19:35 am

Here is a function where you can use the subtree/lis fetch from tpl in php all parameters are possible

https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions/list  / tree

 
 $NodeList = eZFunctionHandler::execute( 'content', 'tree', array(
                                                                         'parent_node_id'     => $groupNodeId,
                                                                         'limit'              => 500,
                                                                         'class_filter_type'  => 'include',
                                                                         'class_filter_array' => array( 'user' ),
                                                                         'depth'              => 5,
                                                    ) );

Modified on Monday 29 February 2016 9:21:20 am by Felix Woldt

Tuesday 01 March 2016 7:44:22 am

Thanks, Felix! It works perfect.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from