public function getDatabasePermissionLevel($username, $databaseName)
    {
        $url      = UrlHelper::buildUrl(Urls::URL_USER, [$username, 'database', $databaseName]);
        $response = $this->getConnection()->get($url);

        $data = $response->getJson();

        return $data['result'];
    }