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

getUsers.php « ajax « build - github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1c4b25803a84aeb8b7055b9b9bec5098c409b383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

OCP\User::checkLoggedIn();
OCP\JSON::callCheck();

header('Content-Type: application/json; charset=utf-8');

$limit = 10;
$offset = 0;

$users = OCP\User::getDisplayNames((string) $_GET['search'], $limit, $offset);

echo json_encode($users);