These settings are a starting point. Adjust them to your equipment, then keep them the same from one session to the next so your photos stay comparable.
The lens
A macro lens of around 100 mm gives a comfortable working distance and limits distortion. Use a fixed magnification for each type of view, and focus by moving closer or further away rather than turning the focus ring.
Aperture
For intraoral shots, a small aperture (around f/22) gives enough depth of field to keep the arch sharp from front to back. For portraits, a wider aperture (around f/8 to f/11) is enough.
Shutter speed and ISO
With a flash, the shutter speed is mainly there to cut out ambient light. Stay at or below your camera’s sync speed, for example 1/125 s. Keep the ISO low (100 to 200) to limit noise.
The flash
A ring flash lights the back of the mouth evenly. A twin flash, with one head on each side of the lens, shows relief and enamel texture better. Either way, set the power once and leave it.
White balance
Set the white balance to “flash” or to a kelvin value rather than auto, so the shade of the teeth stays the same from one photo to the next.
File format
If your camera allows it, save in both RAW and JPEG. Use the JPEG day to day and the RAW if a correction is needed.