Is the Email field in the User object hidden from customer community users? My client has customer community and has written an application for the community. There is an Apex class "with sharing" that selects various fields from the User object. When a community user accesses this method, all field values are returned except for the Email field, which returns a null value.

When a standard license user performs the same function, the email value is returned.

Portal User Visibility and Community User Visibility is enabled. There is a sharing rule on the User object and all the community users are in the group.

1 Answer 1


For community users, there are 3 levels of visibility for their data fields: Employee, External, Public.


These can be set in the API using fields such as UserPreferencesShowEmailToExternalUsers, etc.

  • Also, if the Apex class uses without sharing, then the Email will always be visible. Commented Nov 15, 2015 at 18:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .