/** * Get the name of the backend class the user is connected with * * @return string */ public function getBackendClassName() { if ($this->backend instanceof \OCP\IUserBackend) { return $this->backend->getBackendName(); } return get_class($this->backend); }