Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

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? 

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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