O'Reilly logo

GateIn Cookbook by Piergiorgio Lucidi, Luca Stancapiano, Ken Finnigan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Synchronizing users

Through WEBUI, we can configure initializers that register the default users.

Getting ready

Simply add in the XML file /WEB-INF/conf/organization/organization-configuration.xml, the users, roles, and membership types to pre-charge.

How to do it…

Use the following code to add, for example, the root user:

<object type=
"org.exoplatform.services.organization.OrganizationConfig$User"> <field name="userName"> <string>root</string></field> <field name="password"> <string>gtn</string></field> <field name="firstName"> <string>Root</string></field> <field name="lastName"> <string>Root</string></field> <field name="email"> <string>root@localhost</string></field> <field name="groups"> <string> manager:/platform/administrators,member:/platform/users, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required