Hello,You can leverage groovy script to add a principal name.Following
script is to add rep:externalId property to user nodes. Similarly, you
can update this script to add rep:principalName
property.https://gist.github.com/andrewmkhoury/6ebeb1e70663b3c63dcb4d2f0994e7ecI
hope this helps.Regards,Vishu