def search(self, pattern=None, ignorecase=True):
        info = self._file_manager.search(pattern, ignorecase)

        # Filter out restricted items
        for conan_ref in list(info.keys()):
            try:
                self._authorizer.check_read_conan(self._auth_user, conan_ref)
                conan_search_info = info[conan_ref]
                for package_id in list(conan_search_info.keys()):
                    package_ref = PackageReference(conan_ref, package_id)
                    try:
                        self._authorizer.check_read_package(self._auth_user, package_ref)
                    except ForbiddenException:
                        conan_search_info.pop(package_id)
            except ForbiddenException:
                info.pop(conan_ref)
        return info
Get all the info about any package
dataset/ETHPy150Open conan-io/conan/conans/server/service/service.py/ConanService.search