The one-year mission would be aimed at investigating violations and abuses committed since the beginning of 2014, and to "establish the facts and circumstances... with a view to... ensuring full accountability," the text said.
Libya hailed the decision.
"There needs to be investigation of violations of human rights to ensure there is no impunity in this case," Libyan representative Salwa El-Deghili told the council.
Libya has been in turmoil since the 2011 overthrow of longtime leader Moamer Kadhafi in a NATO-backed uprising.
It has had two parliaments and governments since Tripoli was seized in August 2014 by the Fajr Libya militia coalition and the internationally recognised government fled to the country's far east.
Adding to the chaos, the Islamic State, which already controls large swathes of Iraq and Syria, has also been receiving pledges of allegiance from jihadist groups in Africa and have seized control of Sirte, slain dictator Kadhafi's home town.
Friday's resolution, tabled by the groups of African and Arab states, along with a number of European countries, including France and Britain, condemned "in the strongest terms... terrorist acts."
It decried the "hostage-taking and violence committed against civilians by the so-called Islamic State... and other terrorist organisations," and harshly criticised their "violence extremist ideology and their continued gross, systematic and widespread abuse of human rights."
It urged all parties in the conflict to immediately halt all violations and to engage fully commit to UN-led peace talks.
The resolution also called on the Libyan government to investigate all abuses and bring those responsible to justice.
The council said UN human rights chief Zeid Ra'ad Al Hussein to provide an oral update of the mission's progress at its September session and for the new team of investigators to present a full report at the main annual session next March.
--------------------------------------------------------------------------------------------------------------------------------
Libya hailed the decision.
"There needs to be investigation of violations of human rights to ensure there is no impunity in this case," Libyan representative Salwa El-Deghili told the council.
Libya has been in turmoil since the 2011 overthrow of longtime leader Moamer Kadhafi in a NATO-backed uprising.
It has had two parliaments and governments since Tripoli was seized in August 2014 by the Fajr Libya militia coalition and the internationally recognised government fled to the country's far east.
Adding to the chaos, the Islamic State, which already controls large swathes of Iraq and Syria, has also been receiving pledges of allegiance from jihadist groups in Africa and have seized control of Sirte, slain dictator Kadhafi's home town.
Friday's resolution, tabled by the groups of African and Arab states, along with a number of European countries, including France and Britain, condemned "in the strongest terms... terrorist acts."
It decried the "hostage-taking and violence committed against civilians by the so-called Islamic State... and other terrorist organisations," and harshly criticised their "violence extremist ideology and their continued gross, systematic and widespread abuse of human rights."
It urged all parties in the conflict to immediately halt all violations and to engage fully commit to UN-led peace talks.
The resolution also called on the Libyan government to investigate all abuses and bring those responsible to justice.
The council said UN human rights chief Zeid Ra'ad Al Hussein to provide an oral update of the mission's progress at its September session and for the new team of investigators to present a full report at the main annual session next March.
--------------------------------------------------------------------------------------------------------------------------------