API:SetGroupLeader

Sets someone in party to leader SetGroupLeader(name)

Arguments

 * name -
 * Name of Player, UnitId

Example
/script SetGroupLeader("party1");