How to hide security groups subpanel in Contacts module?

Hi everybody! I need to hide “security groups subpanel” in Contacts module

Please, can we help me?

Best regards!

1 Like

Hi @hgorino

Please follow these steps > modules/Contacts/metadata/subpaneldefs.php

unset($layout_defs['Contacts']['subpanel_setup']['securitygroups']); Past this code in last line.

Hope that helps!

1 Like

An upgrade safe method of this will be to create a new php file in
custom/Extension/modules/Contacts/Ext/Layoutdefs/ folder e.g “hide_security_groups.php”

and put the code


in this new file. Then repair and rebuild

1 Like