UiPath / orchestrator-powershell

UiPath Orchestrator PowerShell cmdlet library
MIT License
107 stars 56 forks source link

Error 1101: An organization unit is required for this action #1

Closed josephchew02 closed 6 years ago

josephchew02 commented 6 years ago

Hi, I encounter the above-mentioned error when I execute the command to get the UiPath asset. May I know if I have not provided any necessary information to execute the command?

rusanu commented 6 years ago

Hello @josephchew02 this is a bug with the library. Will provide a fix soon.

rusanu commented 6 years ago

Right now there is no support for OUs and many cmdlets don't work when attempted, if you are running an OU enabled Orchestrator. Until we enable OU support proper, you can work around the issue by creating a different administrator user for each OU, and add this user just to one OU. Eg. if you have two OUs, Foo and Bar, then create FooAdmin and Administrator in Foo and BarAdmin an administrator in Bar. Then you can use the cmdlets provided you use the correct user for the OU you are working with. The error you encounter only occurs when you've authenticated yourself using an user that is member of multiple OUs.

reesha-rsh commented 4 years ago

Hi @rusanu . is it solved now? is OU supported now? thanks