amlanpal
Kilo Sage

Hi Ankit,



Please write the script on Module table ('sys_app_module') as below. Also you may add the Condition as !gs.hasRole('admin') for better performance.


Script:


//To hide the particular   Module.


      if(!gs.getUser().isMemberOf('Group A'))


              {


              current.addQuery('sys_id','!=','85591e0f4fdde6006292a90f0310c730');//sys_id of the module


      }



I hope this helps.Please mark correct/helpful based on impact