code: def create_user(uid=None, username=None, password=None, priv=None):
      '''
      Create a CIMC user with username and password.
  
      Args:
          uid(int): The user ID slot to create the user account in.
  
          username(str): The name of the user.
  
          password(str): The clear text password of the user.
  
          priv(str): The privilege level of the user.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' cimc.create_user 11 username=admin password=foobar priv=admin
  
      '''
  
      if not uid:
          raise salt.exceptions.CommandExecutionError("The user ID must be specified.")
  
      if not username:
          raise salt.exceptions.CommandExecutionError("The username must be specified.")
  
      if not password:
          raise salt.exceptions.CommandExecutionError("The password must be specified.")
  
      if not priv:
          raise salt.exceptions.CommandExecutionError("The privilege level must be specified.")
  
      dn = "sys/user-ext/user-{0}".format(uid)
  
      inconfig = .format(uid,
                                                        username,
                                                        priv,
                                                        password)
  
      ret = __proxy__['cimc.set_config_modify'](dn, inconfig, False)
  
      return ret
docs: Create a CIMC user with username and password.
  
      Args:
          uid(int): The user ID slot to create the user account in.
  
          username(str): The name of the user.
  
          password(str): The clear text password of the user.
  
          priv(str): The privilege level of the user.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' cimc.create_user 11 username=admin password=foobar priv=admin