The end point is based on artur’s reply over here
i was able to count the number of users by using the following code
$app = Cockpit::instance();
try {
if ($app->dataStorage->getCollection('system/users')->count()) {
$usercount= $app->dataStorage->getCollection('system/users')->count();
echo $usercount. "nos of users" ;
if ($usercount>1){
echo "test";
// code for spitting out array of users?
}
exit;
}
} catch(Throwable $e) { }
?>
but i am unable to figure out how should i fetch details of users… kindly guide me