find users which are in the same group

fixes the user search in the share drop-down if "Allow users to only share with users in their groups" option is set in the admin settings.