Forum Discussion
kannan_mck007
Jun 11, 2019Copper Contributor
Get current sharepoint online logged in user from C#
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 ...
Rahul Suryawanshi
Jun 12, 2019Brass Contributor
Hi Kannan,
SharePoint Online doesn't allow custom C# web parts. You might have SharePoint Framework web parts or you might have provided hosted Add-in. Put some code sample here to know what exactly you trying to achieve and would able to comment.
SharePoint Online doesn't allow custom C# web parts. You might have SharePoint Framework web parts or you might have provided hosted Add-in. Put some code sample here to know what exactly you trying to achieve and would able to comment.
kannan_mck007
Jun 12, 2019Copper Contributor
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.
- James_NiNov 09, 2020Copper Contributor
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.