How to get logged in user or user id in scoped application

abhisekpramanik
Tera Contributor

Hi Guys ,

I have two question .

1. How to get logged in user or user id in scoped application?

2.Does setAbortAction works in scoped application ?

Thanks,

Abhisek

1 ACCEPTED SOLUTION

Nitesh Asthana1
Kilo Guru

1. gs.getUser().getID();   //sys_id


2. Yes


View solution in original post

2 REPLIES 2

Dubz
Mega Sage

Hi Abhishek,



You can use the getUserID() or getUserName() methods in scoped apps and setAbortAction() should work. These details are all available from the developer site at the below link.



https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=r_ScopedGlideSystemGetUserID


Nitesh Asthana1
Kilo Guru

1. gs.getUser().getID();   //sys_id


2. Yes