summaryrefslogtreecommitdiffstats
path: root/apps/contacts/temporaryupdate.php
blob: bb5ff7604f3db18c6b3a56d385188676f9d3191d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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";