Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Using admin's credential to create/update incident

pavan yadav1
Tera Contributor

Is there possibility to use admin's credential to create/update incident but it should be reflect as created/updated by other user?

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @pavan yadav1 

 

Why an admin share the password? what is use case of same.  A admin can impersonated on other behalf 

 

AGLearnNGrow_0-1708524154146.png

 

 

I as admin impersonate and create ticket but it shown only the user name whom i impersonate.

 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

pavan yadav1
Tera Contributor

I am using this API https://{Instance}.service-now.com/api/now/table/incident for creating incident using admin credentials . And request body below 

{
    "short_description" : " just check",
    "caller_id" : " ",
    "sys_created_by": "pavan",
      "sys_updated_by": "pavan",
  }
 
But getting  for  "sys_updated_by": "Admin", and "sys_created_by" : "Admin" in response body. I want sys_updated_by and sys_created_by as same  user name which i am passing in request body  using admin credentials. Is it possible ?