#!/usr/bin/php __setCookie("zf_token",$AuthToken); $args = array ('loginName' => $userlogin); echo "Getting existing user's Heirarchy\n"; $Hierarchy = $client->LoadGroupHierarchy($args); #print_r($Hierarchy); $topId = $Hierarchy->LoadGroupHierarchyResult->Id; echo "Top Id: $topId\n"; echo "Parsing Directory: $path\n"; $topdir = new DirObj(); # $topId IS the parentId, so we want to include it twice for no real reason $topdir->Load($client,$AuthToken,$topId,$path,$title,$topId); ?>