Deactivate a user and migrate all the Tickets and CMDB records to another one

Thiago_Pereira
Tera Contributor

Hi All,

Can you please help me in writing the script to deactivate one user?
I need migrate all the Tickets and CMDB records (REQ, RITM, SCTASK, CMDB and Asset) from this user to another active user.

 

Thanks!

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Thiago_Pereira 

You can achieve this via a flow, but the issue arises if a user is deactivated. They may belong to multiple groups, so the question is: to which group should the ticket be assigned? How do you identify the correct group in that scenario?

 

Also, if user is alone in that group? 

*************************************************************************************************************
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]

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