In addition to naval officers of Navy and the Coast Guard, a general officer in the Army, Marines, or Air Force with the rank of brigadier general or higher.
A naval officer with the rank of rear admiral or above. Such officers are entitled to fly a personal flag, especially on the flagship.
An officer above the rank of colonel.