Fixing automation api to retrieve tenant information