I have written a trigger on Case.I am querying user object to fetch user email id.I am getting the user id email value when checking the logs as Salesforce User but email id value is coming null when checking the log as partner community user...
List<User> UsList=[Select id,name,Email from user'];
System.debug('========UsList======'+usList);
This is the query.I am getting the Id and name when logged in as Partner community user but i am not getting email.Its been 2 days...I am only getting the logged in partner community email Id in my query..All the other user email ids are coming as null...
Is there any permission and something i need to mention in my query to get the email ids og other users....
Please help..