The UN took command of the Darfur peacekeeping operation from the African Union in December 2007 .