orchestrator-powershell icon indicating copy to clipboard operation
orchestrator-powershell copied to clipboard

Get-UiPathAuthToken with windows credentials and tenant

Open mroth42 opened this issue 5 years ago • 3 comments

There seems to be a problem with Get-UiPathAuthToken with windows credentials and tenant. If I have the same AD account in multiple tenants and use Get-UiPathAuthToken I get a response, that I'm connected to the correct tenant but when I use Get-UiPathRobot I get the robots from the tenant with the lowest Id.

mroth42 avatar Apr 24 '19 12:04 mroth42

I'm experiencing the same issue. It seems like the -TenantName parameter accepts any string value regardless if it's a tenant or not. As far as I can tell it simply authenticates to the "default" tenant despite listing the token as authenticated to the TenantName you entered.

ixniz avatar Feb 04 '20 10:02 ixniz

Hi, I'm using O19.10 and Get-UiPathAuthToken always use context of Default tenant, even if I specify different one. If Default Tenant is disable while other in use it throws: The operation returned an error: 0: You are not authenticated! AD Authentication, same user on each tenant. Any update on that?

KamilMax avatar Feb 05 '20 13:02 KamilMax

This is an Orchestrator bug, using the API with Windows credentials is incompatible with multiple tenants. We need to fix first the Orchestrator, in a future release.

rusanu avatar Feb 05 '20 13:02 rusanu