AnsweredAssumed Answered

How to bypass the message box that appears when calling a webscript

Question asked by skumar.us on Jun 24, 2015
Latest reply on Jun 26, 2015 by skumar.us
I have written a webscript to get the current logged in user.when I call this webscript it is prompting to enter the user name and password. Can this be ignored or by passed? How?

<webscript>
   <shortname>Get User Webscript</shortname>
   <description>Get User Id</description>
   <url>/com/ironmountain/getuser/GetUserWebscript</url>
   <authentication>user</authentication>
   <format default="json">any</format>
   <transaction>required</transaction>
</webscript>


<#escape x as jsonUtils.encodeJSONString(x)>
{
      "userId": "${userId}"
}
</#escape>


function main()
{
   var userId = person.properties.userName;
   model.userId = userId;
}

main();

Outcomes