|Knowledge Article Number||000213069|
Before Enabling Communities:
All the Site Guest Users will have access to the SmallPhotoURL field on User Object via apex code.
After Enabling Communities:
All the Site Guest Users will NOT have access to the SmallPhotoURL field on User Object via apex code.
Also makes it unavailable and NOT being visible via browser's Inspect Element Tools.
SmallPhotoURL field visibility to Guest Users
Enabling Communities puts additional security for the users even if they have PUBLIC READ ONLY access on their profile.
To make the Guest Users view other community member's photo associated in the community, the individual user should enable additional the below perms at their end.
By Enabling this perm "Show in communities with Publicly Accessible Pages"on the profile, this makes the Guest User to be able to access the SmallPhotoURL field on the User and can be able to
view the picture of the other community members.
Before ENABLING the Communities by the Admin, this has to be taken care of to make sure the Guest Users has the ability to see the picture of the associated community members.