The woman appointed as the first person to manage the Church of Scotland's 2,500 staff has announced she will retire next year.

Pauline Weibye, 62, will leave her post as general secretary of the Church at next May's General Assembly.

She will have spent six years in the role which has seen her coordinate the affairs of the Church, Scotland's largest membership organisation and one of the country's largest charities with an annual budget of £110 million.

The post was effectively the Kirk's first "chief executive".

Rev Dr Grant Barclay, who is convener of the Church's Council of Assembly, said Mrs Weibye has been instrumental in shaping the national Church into a smoother running and more coherent organisation.

He said: "Given the Church's Presbyterian nature it was a bold step to create a senior coordinating role. The impact Pauline has had in helping people work together has vindicated the decision.

"She has overseen the Church's move towards a balanced budget, achieved much needed pensions reform and enabled a more strategic focus for the Church's central work.

"Since the earliest days of the church, Christians have found that working together is challenging but, at its best, it enables God's purposes to be worked out in real life.

"Pauline has exemplified leadership which is filled with faith and a deep desire to serve other people.

"Her contribution in this pioneering role has been immensely appreciated."

Mrs Weibye said she is looking forward to retirement, but still has a great deal of work to do in the next nine months before handing over to her successor.

She said: "This has been so much more than a job, it's been a huge privilege to serve the Church in this way.

"I've had a unique insight into the lives of Christian folks up and down the land, doing their best in difficult times to live out the Gospel message.

"Challenging? Yes, sometimes, but all big organisations have their difficult moments.

"We manage to make a difference to people's lives and that's what keeps me and all of my colleagues going.

"I shall be retiring from the day job but fully expect to keep serving the Church at a local level."

Mrs Weibye has helped steer the Kirk through the issue of the the ordination of ministers in same-sex relationships which has divided the Church since traditionalist members attempted to block the appointment of Rev Scott Rennie - who is in a civil partnership - in Aberdeen in 2009.

A total of 21 out of 806 ministers subsequently quit the Kirk over the issue.

The Church's Council of Assembly is currently drawing up plans to "build on the success of the general secretary role".

The recruitment process will start in the autumn.