I want to trigger a Script Action based on 'security.elevated_role.enabled' event.

pranavagarw
Tera Expert

Hi,

Whenever someone elevates their role to Security Admin, this event is triggered 'security.elevated_role.enabled'.
I want to use this event in a Script Action and do some operations.
But, I am unable to find this event.

pranavagarw_0-1770022976891.png

Why it is happening?
Or, Is there any other approach where I can perform some operations based on the role elevation.

Thank You.

7 REPLIES 7

Yes, that is I have used for now. But I am not sure that this would be an efficient approach, or there is any other better solution if it is not.

@pranavagarw 

that's the only possible option as of now.

💡 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

Chaitanya ILCR
Mega Patron

Hi @pranavagarw ,

you can register this event in the event registry 

ChaitanyaILCR_0-1770025583849.png

and then create the script action

 

ChaitanyaILCR_1-1770025854901.png

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya