UiPath / orchestrator-powershell

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

Add-UipathFolderUser command not available in 20.4.0.15 #133

Closed sid-paul07 closed 4 years ago

sid-paul07 commented 4 years ago

Add-UipathFolderUser command not available in 20.4.0.15.

How can i get it and what is the alternative. Add-UiPathFolderUserRoles does not seem to work

Add-UiPathFolderUserRoles -Id "25" -UserIds "26" -RoleIds "6" -AuthToken $Auth -Verbose

Where 25 is the folder id, 26 is my domain account id and 6 is the role assigned to the domain group in the Orchestrator

sid-paul07 commented 4 years ago

I have updated to the latest version and still not working. Now im on 20.4.0.18 of the module. We are using 2020.4v of the Orchestrator.

The parameter : -OrganizationUnit doesnt work for String or int values like "Default" or FolderID "2"

Get-UiPathOrganizationUnitUser -OrganizationUnit "2" -AuthToken $Auth Get-UiPathOrganizationUnitUser : Cannot bind parameter 'OrganizationUnit'. Cannot convert the "2" value of type "System.String" to type "UiPath.PowerShell.Models.OrganizationUnit". At line:1 char:50 Get-UiPathOrganizationUnitUser -OrganizationUnit "2" -AuthToken $Auth CategoryInfo : InvalidArgument: (:) [Get-UiPathOrganizationUnitUser], ParameterBindingException FullyQualifiedErrorId : CannotConvertArgumentNoMessage,UiPath.PowerShell.Cmdlets.GetOrganizationUnitUser

Add-UiPathFolderUserRoles -Id 27 -UserIds 26 -RoleIds 55 This command also doesnt work. id= folderID, UserIds = UserId in Orch, RoleIds = RolesID in Orch, the folders are classic

Edit-UiPathOrganizationUnitUser - this has the same -OrganizationUnit parameter doesnt work.

Please help!!