I have to get current logged in user in provider hosted app remote event receiver.
I used the below code to get the current user name, but I got current user name as Sharepoint App instead of Current logged in user.
Code
currentUser = clientContext.Web.CurrentUser; clientContext.Load(currentUser, x => x.LoginName, y => y.Id); clientContext.Load(currentUser, Z => Z.Title); clientContext.ExecuteQuery();How to get the current logged in user?
I want the current logged in user in Process event of remote event receiver.any help will be appreciated , thanks in advance.

Rajkiran SwainRank #165 · 14.4K reputationPosted Jun 18, 2017, 8:46 AM EDT
\\"Department\\" property is "