yo yo yam yam tanum bhaktah
tasya tasyacalam sraddham
tam eva vidadhamy aham
Meaning: I am in everyone’s heart as the Supersoul. As soon as one desires to worship some demigod, I make his faith steady so that he can devote himself to that particular deity.
*** The Supreme Personality of Godhead as Supersoul is present within the heart of the demigod; therefore He arranges through the demigod to fulfill the desire of the living entity. But both the demigod and the living entity are dependent on the supreme will. They are not independent. As per instruction given in Bhagavad-gita, one should give up all other engagements and fully surrender unto him. This will make man happy.