In Experience Cloud sites, users who are case team members are visible to other site members, even if the "Visible in Customer Portal" checkbox is unchecked for their case team member or member role record.
This is working as expected. The Case Teams feature contains a "Visible in Customer Portal" field that can be set to True or False. This refers to legacy customer portals on the Salesforce platform, and not Experience Cloud sites. User visibility in Experience Cloud sites is dictated by several settings, including, but not limited to:
Site User Visibility, located in Setup > Sharing Settings
See other members of this site, which turns user visibility on or off on a site-by-site basis
Sharing rules on the User object
If, for example, the see other members of this site setting is enabled in Experience Workspaces for your site, all site members will have read access to the user records of all other site members. Additional security features, such as Enhanced Personal Information Management and the Show Nicknames setting in Workspaces, can be leveraged to hide personally identifiable information on the records themselves. These security features will not change or remove the read access to the record when the UserRecordAccess object is queried, but they will help protect sensitive user data in certain fields.
If your business requires granular user sharing and visibility within the context of a single site, it is recommended to set the User object's external organization-wide default setting to Private and leverage existing tools like sharing rules, sharing sets, manual sharing, or Apex sharing. Please contact Salesforce Support if you find site user security features are not working as expected.
Control Which Users Experience Cloud Site Users Can See
Control User Visibility in Your Experience Cloud Site
Site User Visibility Best Practices for Guest Users
Manage Personal User Information Visibility for External Users
Show Nicknames Instead of Full Names in an Experience Cloud Site
005227997

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.