You can also do a similar filtering <code>formfield_for_manytomany</code> for groups field on Users admin and on GlobalPagePermission admin.