Ah, I'm not so sure you'd count Stalin as an elected person.
Nor Pol Pot.
There was a parliamentary election in Russia, arranged prior to the Bolshevik seizure of power, but held after it, on 25 November 1917. It was intended to create a democratic parliament. This was the only recognisably democratic election ever held in the Soviet period, right up almost to the end.
In fact, the Bolsheviks refused to accept the result, which went against them. The majority party in that election represented the interests of the peasants who then predominated numerically in Russia. Most of the many "others" shown were non-Great Russian ethnic nationalists, strong in Ukraine and other minority-inhabited regions.
Rather than bow to the result, the Bolsheviks dispersed the Assembly, and it convened only for a single day.
Here are the percentage votes, and the number of deputies returned, for the main parties.
Socialist-Revolutionary Party (SRs) 17,100,000 41.0 380
Bolsheviks 9,800,000 23.5 168
Constitutional Democratic Party (Kadets) 2,000,000 4.8 17
Mensheviks 1,360,000 3.3 18
Others 11,140,000 26.7 120
Total (turnout 48.44%) 41,700,000 100 703