The prosecutors say that Saudi Arabia was growing increasingly frustrated with being criticised online.
The two Saudis who worked at Twitter were tasked with gathering the email addresses linked to the Twitter accounts and internet protocol addresses that indicate the user's location.
Al Jazeera's Rob Reynolds reports.