Function getAllExistingPermits