AnsweredAssumed Answered

How to get Logged-in User ID in canvas ?

Question asked by Anand Venkatraman Narayanaswamy on Sep 22, 2016
Latest reply on Jan 25, 2018 by Cristian Tapia


        I'm new to canvas and I really need some kind of help to fix the issue. I'm trying to call an external app (Web application deployed in Tomcat server locally) in one of the pages that I had created in Canvas using <iframe> tag. The issue is that I need to pass the logged in User id in the iframe src URL as a parameter. For ex: something like this


<p><iframe src="http://localhost:8080/SBAScholarships/Test.jsp?testVal=$" width="1000" height="600" allowfullscreen="allowfullscreen"></iframe></p>


But for some reason, the $ is automatically encoded as %24 and not able to get the logged in user ID. Is there any way that I can achieve this functionality ?


Any help is highly appreciated.