how i can have a custom user as the closed user everytime system closes any incident

Debasis Pati
Kilo Sage

My requirement is i need to create one system user and also whenever system closes any incident the closed by should be the system user i created.
My question is what all basic minimum roles the system user should have also where all i need to update in the system so that whenever any incident is auto closed by system it should show the user i have created.

@Ankur Bawiskar any suggestions?


 

1 ACCEPTED SOLUTION

@Debasis Pati 

no role required as you just need to set that user in closed_by

Try giving minimum snc_internal role

I believe I shared a working solution.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

@Debasis Pati 

that's OOTB behavior. Why to change that?

If you want then you can update that line to set closed_by as your newly created user, pass that user sysId there at line 37

AnkurBawiskar_0-1767695051771.png

 

But remember you should avoid updating OOTB Components

OR Another Way to not touch OOTB, create your own BR

-> before update BR -> State Changes to Closed and State Changes From Resolved

-> set the Closed By with your custom user

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar ,
Creating a new business rule makes sense i will try out the solution .
Do i need to provide any role to the created system user?

 

@Debasis Pati 

no role required as you just need to set that user in closed_by

Try giving minimum snc_internal role

I believe I shared a working solution.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader