parthasarathy B

parthasarathy B

  • NA
  • 927
  • 107.4k

Get current logged in user in Remote event receivers

Jun 18 2017 11:12 AM

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.
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.
 

Answers (2)