Sunbeams create a sense of awe in the viewer, so one needs to look for objects that generate sunbeams such as trees, leaves and branches carefully. Look for the big sunbeams as smaller ones are visually unappealing to the viewer.
Adjust your shot to find a good balance by changing one's position and the angle - and get the right number and length of sunbeams around a tree or a building.
On the other hand, these types of adjustments are often difficult in the case of capturing sunbeams through clouds, and best, you can avoid flare by using a hood.
Positioning the camera is very important to compose your shot by avoid shooting directly into the sun. Proper metering for light can can give needed detail within the image.