Shay Logan has agreed a pre-contract with Aberdeen.
The right back, who was on loan at Pittodrie from Brentford, will officially join Aberdeen on a two-year deal on July 1.
Manager Derek McInnes said: “We’re really pleased to get Shay. He will no longer be a loan player and will be an Aberdeen player and I think that’s really important.
“I thought he showed enough in his loan spell with us last season in terms of his qualities and we’re just looking for that consistency of performance going forward.
“We’re delighted he sees Aberdeen as the place to play his football and we’re looking forward to working with him again.”