Nextcloud Server is a Nextcloud package that handles data storage. Nextcloud Server versions prior to 19.0.11, 20.0.10, or 21.0.2 send user IDs to the lookup server even if the user has no fields set to published. The vulnerability is patched in versions 19.0.11, 20.0.10, and 21.0.2; no workarounds outside the updates are known to exist.
https://security.gentoo.org/glsa/202208-17
https://hackerone.com/reports/1173436
https://github.com/nextcloud/security-advisories/security/advisories/GHSA-396j-vqpr-qg45