Here's the response from ChatGPT?
What conditions must be present for the President to impose military intelligence in place of DOJ
Under normal circumstances, the President cannot impose military intelligence in place of the Department of Justice (DOJ) to conduct investigations or law enforcement activities within the United States. The DOJ is a civilian agency that operates under the authority of the Attorney General, who is appointed by the President and confirmed by the Senate.
However, in the event of a national emergency, the President may use the military to support domestic law enforcement activities under certain conditions. For example, the President may invoke the Insurrection Act of 1807, which allows the use of the military to suppress insurrections, domestic violence, or other domestic disturbances that cannot be quelled by civilian law enforcement authorities.
In order to invoke the Insurrection Act, the President must determine that:
A domestic insurrection, domestic violence, or other domestic disturbance exists that makes it difficult or impossible for law enforcement authorities to maintain public order and protect lives and property;
The state or local authorities have requested the assistance of the federal government to restore order;
The use of military force is necessary to suppress the disturbance and restore order; and
The use of military force is consistent with the Constitution and federal law.
Even in such circumstances, the use of military intelligence to conduct investigations or law enforcement activities would be subject to legal limitations and oversight by civilian authorities. The military is not a law enforcement agency, and its intelligence gathering and investigative activities are subject to the laws and regulations governing intelligence activities, including the Foreign Intelligence Surveillance Act (FISA) and the Fourth Amendment to the US Constitution.