(Reuters) - Apple Inc AAPL.O plans to create an online tool for police to formally request data about its users and to assemble a team to train police about what data can and cannot be obtained from the iPhone maker, according to a company letter seen by Reuters.

FILE PHOTO: The company's logo is seen outside Austria's first Apple store, which opens on February 24, during a media preview in Vienna, Austria, February 22, 2018. REUTERS/Heinz-Peter Bader/File Photo

The letter, dated Sept. 4, was from Apple General Counsel Kate Adams to U.S. Sen. Sheldon Whitehouse, a Democrat from Rhode Island.

Apple declined to comment beyond the letter.

Apple can and does provide some user data, such as data stored in its iCloud online service, to law enforcement officials if they make a valid legal request.

But Apple has sparred with U.S. law enforcement officials because it encrypts its devices in such a way that Apple cannot access the devices if asked to do so.

The company said in its letter that it had responded to 14,000 U.S. law enforcement requests last year, including 231 “domestic emergency requests,” that it largely addressed within 20 minutes of receipt “regardless of the time of day or night.”

Apple previously handled those requests via email, a company spokesman confirmed. By the end of this year, Apple will provide an online tool for law enforcement officials to make and track requests, according to its letter.

Apple said in the letter that it had trained nearly 1,000 law enforcement officers in how to obtain data from the company. The training previously happened in person at Apple’s headquarters, but the company said it would create an online training course and a team of trainers to help extend its reach to smaller departments.

It said the training and portal would be available globally.

A July report from the Center for Strategic and International Studies that surveyed state and federal U.S. law enforcement officials said their top concern was how to identify which technology companies had access to which data and how to obtain it, which can change from year to year and even month to month as consumers use new devices and services.

“Regardless of what happens in the encryption debate, these are efforts that ought to be undertaken,” Jennifer C. Daskal, one of the report’s authors, told Reuters. “Law enforcement needs to know about, and be able to access, the data that is available.”

Apple participated in the study by responding to questions from the researchers, as did other technology companies.

(This story corrects paragraph 7 to spokesman instead of spokeswoman)