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.

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
Police given additional powers to deal with anti-social behaviour in Barry
Senedd passes supplementary budget with £60m boost for additional learning needs
Future of planned festive events in question after criminal damage to Barry Town Hall
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?
Solicitor sentenced for defrauding Cancer Research UK
Cate is crowned champion!
WATCH: Winner of The Voice UK Cate McHugh duets with Sir Tom Jones
Barry filmmaker takes her documentary to the big screen in New York
Pupils leave their mark on new school at steel signing event
£3m refurbishment plans revealed for Cowbridge Town Hall