Vitamin D, which the body synthesises with the help of sunlight, has an important bearing on the functioning of our auto-immune system, says a study.