Forums / Developer / Get users
Nicolas Gommenginger
Friday 11 December 2009 7:00:41 am
Hi,
I'm righting a new cronjob script where I want to update some informations of the users of a specific group. So I would like to get all the users from this group and its sub-groups. I searched a lot but I can find the right way to do that...
Does someone have an idea ?
Thanks.
Nico
Nicolas Pastorino
Friday 11 December 2009 7:22:32 am
Hi Nicolas,
User objects, as well as User Group objects are normal content objects. This means you can fetch them wich the normal fetching methods, and then update the user information.
Check these examples : http://share.ez.no/forums/developer/how-to-do-a-fetch-with-php, or http://share.ez.no/forums/developer/how-to-update-an-attribute-of-an-object-with-php
Let us know how it goes, Cheers,
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye