make sure that we only find the shares from the correct share type if users and groups with the same ID exists