Industrial organisation

A firm wants to charge different prices to different customer groups for the same product. Which condition is most important for this strategy to increase profit?