You control access to your data in your personal profile.
To get there, click the Avatar menu at the top of the page, and choose Edit Profile.
On the profile page, click the Privacy tab, and you'll see something like this screenshot. There are a lot of fields, and for each you decide how public the information is. "Friends" is anyone you are connected to in the community.