Message Boards

Migrate user custom fields from instance to instance

avasek atok, modified 8 Years ago.

Migrate user custom fields from instance to instance

Junior Member Posts: 41 Join Date: 1/9/15 Recent Posts
Hi - I have created a new instance (emoticon in liferay. Into this new instance i have exported and imported a site which exists in a different instance (A) in the same liferay installation.

I have configured LDAP into the instance B and imported all users from central LDAP into this instance.

Now i have to migrate the user custom fields/preferences which are user specific of old site in instance A to new site in instance B.

Is there a pre-defined way to achieve this migration.
Please suggest
thumbnail
Olaf Kock, modified 8 Years ago.

RE: Migrate user custom fields from instance to instance

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
No, you'll have to do them again. However, I'm recommending to only create them manually for testing purposes and rather write a plugin (hook) that you deploy on all systems. This plugin should create custom fields through the API (Expando*). If you do this, you'll never need to worry about typos in the custom fields - just deploy the same hook on all your systems and you can be sure that they're configured the way you need it. If you need more: Update the plugin.