Let's say manager_a has permission to view the account of payee_a, so manager_a logs in to payee_a, inside I have my LWC app, I can able to get the payee_a's email id using
import userEmailFIELD from "@salesforce/schema/User.Email";
But I want the manager_a email id also in my app, is there way I can get the logged in as user email id either in LWC or in Apex class
I tried the authSession object in salesforce, but it's giving me all the emailId in that session, but I want the specific user who impersonating as another user