Jun 11 2019 03:41 AM
Hi,
We are creating a portal site using sharepoint online. In one of the web part we are embedding our internal app which was created in C# code. I need to get the current logged in sharepoint user in this c# code to do the data filter based on users. Have tried sharepoint REST API but it gives the user of the registered app. Appreciate if any idea?
Thanks.
Jun 11 2019 07:55 PM
Jun 12 2019 01:45 AM
Jun 12 2019 07:09 AM - edited Jun 12 2019 07:10 AM
Thank you @Rahul Suryawanshi and Thomas Berman for your time. I have fixed this by creating new SPFx web part that can show an iframe and pass the username as a parameter to the embedded page. This solve the issue.
Nov 09 2020 02:58 AM
I have the same issue, can you explain how you created "new SPFx web part". I'm really new to SharePoint so excuse my ignorance.