cancel
Showing results for 
Search instead for 
Did you mean: 

how to add custom fields to nuxeo-invite component

jibanez
Champ in-the-making
Champ in-the-making

I've user directory with custom fields added for instance "area", when i create a new user and set his password it works fine and the field "area" is present but when i create a new user without setting his password the "nuxeo-invite" is launched and the new field "area" is not filled, i've made the contribution below and the new field is added to the table "userinfo" but that field is not filled and is not copied to the users table, any clue will be appreciated

<require>org.nuxeo.ecm.user.invite.core.types.contrib</require>
<extension target="org.nuxeo.ecm.core.schema.TypeService"
             point="schema">
    <schema name="userinfo" src="schemas/custom-userinfo.xsd"
            prefix="userinfo" override="true"/>
  </extension>
2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hi Jesus,

Have you followed the step by step instructions described in https://doc.nuxeo.com/nxdoc/how-to-add-new-fields-to-the-user-profile-or-group-profile/ ? It shows you how to add a new user field.

Once done, there shouldn't be any issue in using something like user:area property.

Have a great day

Yes and it works fine, the issue is when as administrator creates a new user and not set a password for this one, at this moment the "nuxeo-invite" component send a email to the user with a link to activate its account, then the user go to the link to register its password and after registered the user is created but without the "area" field, i've made a contribution overriding the "userinfo" schema, creating new doc type and configuration following the links below but nothing works.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.