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

This is for licensing purpose. If keep the user inactive with Roles, we are charged for licenses.


We are removing incative users from group member table and user role table.



Removed info is stored in temp table and applied back to user when they login back.


This way we can cut down users who just use system for approval and other overlook purpose.


If you really want to modify the script include, then take a copy of it, and then call your own version in the business rule "Group Role Changed"



This way the impact when upgrading/patching is not so big - but you have to monitor if the original script include is changed when upgrading or patching


Akhila12
Tera Contributor

yes, it is possible to hide info messages displayed when adding roles by using " gs.flushMessages(); " 

Modifying the OOB script include is risky. so, instead of changing OOB like "RoleManager" script include, line 141. 

Use " gs.flushMessages(); " in BR where the role is getting added.

 

 

Thanks Akhila, this is the best answer to this topic.

Hi, midjoule

Could you tell me the business rules you created?