Users can't find each other by name in Nextcloud

Hey everyone, how’s it going?

I’m running Nextcloud using the official Docker image (nextcloud). I currently have two groups created, but users within the same group can’t find each other when searching for contacts.

For example, user1 from group1 can’t find user2 from the same group when typing the name in the contact search. I’d like users to be able to discover each other by name—similar to how it works in Microsoft Teams—without needing to manually share profile links.

Does anyone know if there’s a specific setting or app I need to enable to make this work?

Appreciate any help!

command to run the docker: docker run -d -p 8080:80 nextcloud