API- Specifically $user array.

Hey! I just bought xenforo, and am extremely happy so far, switching from mybb. I just would love to know the values that the $user array has, specifically how to pull up the users username. I know I could use $user['user_id']; then run a query, but that'd be intensive on the CPU. Thanks!