Welcome to mirror list, hosted at ThFree Co, Russian Federation.

temporaryupdate.php « contacts « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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";