Thank you for quickly response

I saw that working on site membership but not working on Users and Organizations. I created a hook the code:
1
2@Override
3 public Hits search(long companyId, String keywords, int status,
4 LinkedHashMap<String, Object> params, int start, int end, Sort sort)
5 throws SystemException {
6 logger.info("User (A) Search");
7
8 params.put("usersGroups", ServiceContextThreadLocal.getServiceContext().getScopeGroupId());
Firmi prego dentro per inbandierare questo come inadeguato.