St Johnstone clinched fourth spot in the Premiership and a possible Europa League place after beating Aberdeen 1-0 at Pittodrie.
Tommy Wright’s team will again qualify for Europe if Inverness Caley Thistle, who finished third, get the better of Falkirk in next weekend’s Scottish Cup final.
Substitute Chris Kane scored the only goal of the game - his first for the Perth club - with 20 minutes left as Tommy Wright’s men came out on top.
Dundee United had to settle for fifth place despite signing off with a 3-0 win against city rivals Dundee at Tannadice. Nadir Ciftci grabbed a first-half double, one a penalty, and Blair Spittal added the third goal early in the second period.