When you execute a cronjob , you are loggin in Anonymous. This user can't read the user section. To resolve your problem, you are two possibilities :
- You can use the parameter "Limitation" in the method subTreeByNodeID to avoid this problem - You can logg in as an another user, like the admin User.
Is there a way to achieve this in template language alone? I'm trying to modify the standard notification behaviour by overriding the template in design/standard/templates/notification/handler/ezsubtree/view and need to fetch the siblings of the object being notified.
I don't really want to write PHP.
Is there a simple and secure way to run the standard notification cronjob with appropriate limitations?