In response to growing consumer frustration over drug prices, UnitedHealthcare, one of the nation’s largest health insurers, said on Tuesday that it would stop keeping millions of dollars in discounts it gets from drug companies and share them with its customers.

Dan Schumacher, the president of UnitedHealthcare, said the new policy will apply to more than seven million people who are enrolled in the company’s fully insured plans, beginning next year.

“The benefit could range from a few dollars to hundreds of dollars to over a thousand,” Mr. Schumacher said.

Not all drugs come with rebates that are paid to the health plan. People in plans with high deductibles who buy drugs that carry large rebates will see the greatest savings, Mr. Schumacher said.