how to get the sysid for a user using the username ex. like i have deepak.rawat and i want to pull the sysid of this

deepak rawat1
ServiceNow Employee
ServiceNow Employee

how to get the sysid for a user using the username ex. like i have deepak.rawat and i want to pull the sysid of this .

if there a way to pull the information for the sysid of a assignment group as well ? i trying to create incident with rest where i sending the username and assignment gourp , now incident is getting created but call and assigment group is not getting populated. i guess that is because i need to find the sysid of both for population so i need to find the sysid of both

10 REPLIES 10

Sudhanshu Talw1
Tera Guru

The best option is to createa scripted REST Api where you can write onbefore transform script.

Other option is to call a GET API for getting sysid from username then send the sys_id as you desire.

Thanks

Sudhanshu