Cannot rename AD object

I have a problem with rename user in AD with Rename Object activity.
NewCommonName is origin user name with prefix 01
ObjectDistinguishedName I got with Get Object Distinguished Name activity

When I try to rename user I got error

There is a naming violation

Problem was found: it’s some issue with CN when there is comma character
Few older user accounts in our AD have comma separated given name and surname and with these accounts it has problem.
Although Get Object Distinguished Name activity return escaped string but Rename Object activity still return error.

Thanks to UiPath support I looked at it more closely and it was my fault. It was not a problem with DN but CN.

I’m getting CN by UiPath.ActiveDirectoryDomainServices.Activities.GetObjectProperties as a Single Property and it’s not escaped. When I modify it manually it’s done successfully.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.