I don't know if I understand correct but if you want to hide HR service then you can try writing Query BR on HR service table like below.

Condition

gs.getSession().isInteractive() && (!gs.hasRole("admin")  ||  !gs.hasRole("sn_hr_core.admin") || gs.getUser.isMemberOf('Name of group'))

Script :

current.addEncodedQuery('name!=Administrative');
Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post