How to hide info messages when adding role

eashwar
Tera Contributor

Hello Team,

Is it possible to hide info messages displayed when adding roles.

currently when we add a role to a particular group i see list of info messages displayed in screen (Attached screen shot).

Is there a way to stop it ?

I tried to look up in business rules, client scripts and UI scripts but no luck.

Thank you,

Eash

1 ACCEPTED SOLUTION

larstange
Mega Sage

Its in the "RoleManager" script include, line 141



find_real_file.png


View solution in original post

16 REPLIES 16

larstange
Mega Sage

Its in the "RoleManager" script include, line 141



find_real_file.png


The SN Nerd
Giga Sage
Giga Sage

See Script Include "RoleManager"



gs.addInfoMessage(gs.getMessage('Adding Role {0} to {1}', msgArray));



I would advise caution when modifying this Script Include.


If you modify this Script Include, it will not be updated by future upgrades or patches.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

eashwar
Tera Contributor

Thank you so much folks.


After removing those messages i am still getting these. Unable to find it under script includes



find_real_file.png


Why do you want to change something that is OOB? This will need to be reviewed during every upgrade and adds a unnecessary maintenance cost.



The roles would usually be added by admins. So I don't see this as a issue causing end user annoyance.



Even if that is the case, I would advise you to stream line your process and build a catalog for adding roles to user instead of doing it directly on the table. This would help in maintaining the audit records for role access and also can be used to automate the process, thus removing manual intervention.