For any user login session.established script action showing system user . please help me how to reslove this

shravan3
Kilo Expert

Hi,

 

For any user login session.established event script action showing system user

Event : session.established

Script action

gs.log(gs.getUserName());//giving system user for any user login

4 REPLIES 4

Kalaiarasan Pus
Giga Sage

Are you sure? I am getting the correct values when I tried to login and cross verify.



URL : https://demo001.service-now.com/


Username and Password : abel.tuter



Now logout and login as admin and check the logs.....



Script Action to Check :'Test Action'


i am also getting correct when   i am trying with the demo instances, but in my instance it is always showing system user for any user login?



Please let me know the problem


Not sure either ..... Maybe a HI ticket if nothing else helps out


ajeet2
Tera Expert

Hi Shravan,


Did you get any solution for this issue. If yes, could you please put the things here what resolved this issue.



Regards,


Ajeet