Make a Public Team Private in Teams

You may need to change a teams privacy settings.

Private teams can only be joined if the team owner adds someone to them. When creating a team, choose to make the team discoverable so that people can search for it in the teams gallery, or turn discoverability off so that people can only find the team if shared by you or a team member.

Public teams are visible to everyone from the teams gallery and you can join them without getting approval from the team owner.

Change a team's privacy status

To change the privacy settings for your team from public to private (or vice versa), go to the team name and select More options More options button > Edit team toward the bottom of the menu. Under Privacy, select either Public or Private.

You can now choose to make private teams discoverable when people search for teams to join. People will still require permission from a team owner to join a private team, this only allows the team to turn up in search results for your org.

Note: To change a team's discoverability, right-click on the team name, then select Manage team > Settings > Team discoverability.

 

Source: https://support.microsoft.com/en-us/office/make-a-public-team-private-in-teams-6f324fbc-6599-4612-8daa-ff5d35a746bf#ID0EAABAAA=Desktop