The way I do that is manually:
1 - record/write down the position of the camera and the target location coordinates
2 - position the sun where it needs to be
3 - get the camera to face onto the sun
4 - add the hdri background and line up its sun to face the camera
5 - go back to previous desired camera location and target location coordinates (in step 1)
Hope this helps
P.S. Would be great if there was an option to get an hdri to line up automatically with Artlantis' sun coordinates!