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();