UiPath / orchestrator-powershell

UiPath Orchestrator PowerShell cmdlet library
MIT License
108 stars 55 forks source link

Get-UiPathAuthToken returns 'The requested tenant was not found' #156

Closed anybody84 closed 3 years ago

anybody84 commented 3 years ago

I'm using Cloud Orchestrator and I'm not able to authenticate. I'm running comman:

Get-UiPathAuthToken -CloudDeployment "Production" -TenantName <tenant_name> -AccountName <account_name> -ClientId <client_id> -UserKey <user_key>

I'm obtaining all the details from API Access window on cloud.uipath.com as follows:

The exact message I'm getting is:

Get-UiPathAuthToken : The requested tenant <tenant_name> was not found
At line:1 char:1
+ Get-UiPathAuthToken -CloudDeployment "Production" -TenantName "<tenant_name> ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-UiPathAuthToken], ApplicationException
    + FullyQualifiedErrorId : System.ApplicationException,UiPath.PowerShell.Cmdlets.GetAuthToken

Am I missing sth? Or are there any additional parameters I have to pass? I'v tried already many combinations, but with no success so far.

rusanu commented 3 years ago

If you use the correct tenant name and it still does not work you need to raise an issue with UiPath support, there is nothing I can do from the library.