A former inspector in the Vale of Glamorgan has been banned from policing.
Mark Henderson resigned from South Wales Police amid allegations of inappropriate sexualised behaviour while off duty.
A misconduct hearing, held behind closed doors last month, ruled the former detective would have been sacked from the force for breaching professional standards.
Henderson, who served with South Wales Police for 22 years, moved to Barry in 2019 as a local inspector, after working within CID and the public protection unit in Cardiff.
They added: ''The force continued with a hearing and it was found that had they remained serving they would have been dismissed for breaching the standard of professional behaviour relating to discreditable conduct, after an off duty incident whereby he was found to be acting in an inappropriate sexualised manner."
Following the hearing, Henderson was added to the College of Policing's barred list.
South Wales Police have not made any comment on the matter as the misconduct hearing took place privately.

Barry Christmas events to go ahead with extra security following town centre disorder
Police identify 50 young people amid efforts to tackle Barry town centre disorder
Reform MS calls for “no more devolution in any area”
Barry museum to capture local Gavin & Stacey memories in new video project
Extraordinary council meeting called over anti-social behaviour in Barry town centre
Local Dinas Powys pupils gain insight into gas safety
Former Holm View Leisure Centre could become education and community hub
ScoutsCymru members represent Wales at Royal Albert Hall Festival of Remembrance
Plans for indoor market at former Barry Wilko move forward
Senedd passes supplementary budget with £60m boost for additional learning needs
Consultation to open on plans for 35MW solar farm near Penarth
No Trains through the Vale of Glamorgan this Sunday
Police and Cardiff City launch operation to tackle matchday anti-social behaviour
Free leaf and fallen fruit collections return in the Vale
Barry retains Fairtrade Town status until 2029
£1m improvements planned for Pencoedtre Park as splashpad work set to begin
Plan submitted for new independent school on site of well-known charity farm
Is your hot water bottle safe?