dawa Hi, like the error says, it needs an object. That class has a constructor and can be used as follows:
use Automad\UI\Models\UserCollectionModel;
$UserCollection = new UserCollectionModel();
$User = $UserCollection->getUser('...'); // Can be name or email.
$email = $User->email;