def uid_to_user(uid):
    '''
    Convert a uid to a user name

    uid
        uid to convert to a username

    CLI Example:

    .. code-block:: bash

        salt '*' file.uid_to_user 0
    '''
    try:
        return pwd.getpwuid(uid).pw_name
    except (__HOLE__, NameError):
        # If user is not present, fall back to the uid.
        return uid
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/uid_to_user