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.
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
parthasarathy BPosted Jun 19, 2017, 12:19 AM
Rajkiran SwainPosted Jun 18, 2017, 12:46 PM
\\"Department\\" property is "