Since UA would be awarding the miles/segments, they would be the one to call or contact. While US could help you get UA to award the miles/segments if it were so inclined, it won't give you miles/segments for flying someone else unless it was a codeshare flight (booked as US flight numbers).
Jim