BlackBerry maker Research in Motion (RIM) has agreed to supply the code for its BlackBerry Messenger service to Saudi security agencies.
The move will allow the company to avoid a ban on its services in the country.
Citing sources familiar with the matter, news agency Reuters said that the company has decided to comply with the government's security concerns and has agreed to help security agencies monitor all conversations taking place on its network.
The code will allow Saudi Arabian security agencies to monitor all encrypted messages sent via BlackBerry Messenger in the country.
According to Reuters, access to BlackBerry Messenger servers will only include monitoring messages sent to and from Saudi Arabia.
It is expected that the company will go on to provide security codes and server access to security agencies in Qatar and India, which have threatened to impose a similar ban on BlackBerry services.
The countries believe that terrorist groups could use BlackBerry Messenger services to plan attacks.