code: def user_to_uid(user):
      '''
      Convert user name to a uid
  
      Args:
          user (str): The user to lookup
  
      Returns:
          str: The user id of the user
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.user_to_uid myusername
      '''
      if user is None:
          user = salt.utils.user.get_user()
  
      return salt.utils.win_dacl.get_sid_string(userf user_to_uid(user):
      '''
      Convert user name to a uid
  
      Args:
          user (str): The user to lookup
  
      Returns:
          str: The user id of the user
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.user_to_uid myusername
      '''
      if user is None:
          user = salt.utils.user.get_user()
  
      return salt.utils.win_dacl.get_sid_string(user)
docs: Convert user name to a uid
  
      Args:
          user (str): The user to lookup
  
      Returns:
          str: The user id of the user
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.user_to_uid myusername