Can we change the User ID (rep:principalName)? | Community
Skip to main content
Level 2
Apr 25, 2019 7:24 PM UTC
Solved

Can we change the User ID (rep:principalName)?

We have a need to change a number of user's IDs and keep their profiles, privileges, associated content references, etc.

We would like to either update the existing rep:principalName or create a new ID and copy all the nodes and properties from the old ID.

TeamSite used to have a manual process by changing an xml to force associations from one ID to another.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vish.dhaliwalAccepted solution
Employee
Apr 26, 2019 9:05 PM UTC

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/6ebeb1e70663b3c63dcb4d2f0994e7ec

I hope this helps.

Regards,

Vishu

1 reply

vish.dhaliwalAccepted solution
Employee
Apr 26, 2019 9:05 PM UTC

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/6ebeb1e70663b3c63dcb4d2f0994e7ec

I hope this helps.

Regards,

Vishu

Translate