API calls Tenants

Has anyone actually got a definitive way of using different tenants via API OAuth? I am cloud and it just doesn’t seem to work.

According to Swagger, the odata/Tenants call requires

image

And the result fails: Not Authorised.

{
“message”: “You are not authorized!”,
“errorCode”: 0,
“result”: null,
“targetUrl”: null,
“success”: false,
“error”: {
“code”: 0,
“message”: “You are not authorized!”,
“details”: “You are not allowed to perform this operation.”,
“validationErrors”: null
},
“unAuthorizedRequest”: true,
“__abp”: true
}

1 Like

Hey @pilar.gallego.casado

Sorry unable to get your actual need here…

Kindly explain

Thanks
#nK

I am trying to make the call to get the tenants of the orchestrator but it gives me authentication error and I have administration permissions so I do not know what the error is

1 Like

Hey @pilar.gallego.casado

Which activity are you using for this please ?

Thanks
#nK

Hello! I’m trying to make the calls from code with python