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

The RoleManager Script include is way too important to be modifying.



As previously mentioned, caution is advised.



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

I need to modify for a different reason. We are using an automation to remove users who are inactive for more than 30 days. When they log back in their roles and groups are added back. These info messages are displayed when are added back.



Also I have modified the customer updates in XML to true, this will allow the updates to happen as designed.


Okay how do you reactivate the users? Does it using any request? Can't you add the role reassignment logic to that service?


So, roles are not necessarily added by admins - in every use case.  Take the case of auto provisioning in the consumer or service portal based on an SSO login.  The idP is where registration occurs.  The auto-provisioning actually adds the user on the fly, that's an OOB feature.  When the user registers and is redirected to the portal, they see these annoying 'Added role' and 'Primary device' info messages.  This is not acceptable in a public portal.  These messages need to be surppressed in the case, otherwise the whole concept of deflection and self-service take a hit.  What is the user going to do?  Pick up the phone and call the help desk to ask what these messages are.  

larstange
Mega Sage

Instead of removing the users, why don't you just remove the active flag, and set them "locked out" - thats what we do.


Then they are easy to reactivate again



When you remove their user record, all your data history for this user is also lost.