Besides the law written in their hearts, they received a command not to eat of the tree of the knowledge of good and evil. While they kept this command they were happy in their communion with God, and had dominion over all other creatures.
Gen 2:16-17
16 And the Lord God commanded the man, saying, “You may surely eat of every tree of the garden, 17 but of the tree of the knowledge of good and evil you shall not eat, for in the day that you eat of it you shall surely die.”
Gen 1:26-28
26 Then God said, “Let us make man in our image, after our likeness. And let them have dominion over the fish of the sea and over the birds of the heavens and over the livestock and over all the earth and over every creeping thing that creeps on the earth.” 27 So God created man in his own image, in the image of God he created him; male and female he created them. 28 And God blessed them. And God said to them, “Be fruitful and multiply and fill the earth and subdue it, and have dominion over the fish of the sea and over the birds of the heavens and over every living thing that moves on the earth.”
Ps 8:4-8
4 what is man that you are mindful of him, and the son of man that you care for him? 5 Yet you have made him a little lower than the heavenly beings and crowned him with glory and honor. 6 You have given him dominion over the works of your hands; you have put all things under his feet, 7 all sheep and oxen, and also the beasts of the field, 8 the birds of the heavens, and the fish of the sea, whatever passes along the paths of the seas.