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

Avatar

Avatar
Validate 1
Level 1
kentt20248023
Level 1

Like

1 like

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
kentt20248023
Level 1

Like

1 like

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
kentt20248023
Level 1

25-04-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

26-04-2019

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

Answers (0)