You need to sign in to do that
Don't have an account?
dmcheng
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.
User Email field unavailable to community users with sharing?
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.
Programmatically, you can set these preferences in Apex if need be:
All Answers
According to new sharing rules now User object also support OWD. You need to check the all fields and record are shared with portal user.
-Thanks
Ashlekh Gera
Programmatically, you can set these preferences in Apex if need be: