diff --git a/apps/contacts/temporaryupdate.php b/apps/contacts/temporaryupdate.php new file mode 100644 index 0000000000000000000000000000000000000000..bb5ff7604f3db18c6b3a56d385188676f9d3191d --- /dev/null +++ b/apps/contacts/temporaryupdate.php @@ -0,0 +1,13 @@ +<?php +// Init owncloud +require_once('../../lib/base.php'); +$connector = new OC_Connector_Sabre_Principal; +$users = OC_User::getUsers(); + +foreach($users as $user){ + $foo = $connector->getPrincipalByPath('principals/'.$user); + if(!isset($foo)){ + OC_Connector_Sabre_Principal::addPrincipal(array('uid'=>$user)); + } +} +echo "done"; \ No newline at end of file