Ensure id is permitted.