$user

  1. drupal
    1. 6
    2. 8
    3. 7

An object representing the currently logged-in user.

Contains preferences and other user information.

documentation/developer/globals.php, line 84

<?php
global $user
?>