BANGKOK (AP) — The first-ever U.N. independent expert selected to investigate violence and discrimination against lesbian, gay, bisexual, and transgender people is vowing to forge ahead with wide-ranging investigations despite formidable opposition to his appointment.

The expert, Thai legal scholar Vitit Muntarbhorn, said in Bangkok on Wednesday that he will find ways to work with countries opposed to his appointment.

He is tasked with writing a U.N. report and responding to complaints of discrimination and abuse. He plans to visit countries around the world to carry out his duties.

His U.N. position was in peril last week when a group of African nations nearly derailed his appointment by the U.N. Human Rights Council, but the amendment to block him was defeated.

He faces a final vote next month in the General Assembly.

© 2016, Associated Press, All Rights Reserved.

This material may not be published, broadcast, rewritten, or redistributed.