<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adding colums to the default user schema in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/adding-colums-to-the-default-user-schema/m-p/317098#M4099</link>
    <description>&lt;P&gt;Hello community,
I'm trying to add more fields to the user creation form. I've been following the tutorial at &lt;A href="https://doc.nuxeo.com/nxdoc/how-to-add-new-fields-to-the-user-profile-or-group-profile/"&gt;https://doc.nuxeo.com/nxdoc/how-to-add-new-fields-to-the-user-profile-or-group-profile/&lt;/A&gt;
Where it shows how to override the default user schema. I followed suit and added my custom user schema as well as the references contribution as shown. I also modified the edit user layout to add my custom fields (they are simple nuxeo-inputs with the new user fields as values).&lt;/P&gt;
&lt;P&gt;However whenever I create or edit an user, those fields are never persisted; looking at the database those fields/columns are also missing.
I checked the server logs as well and found that the schema manager actually marks my custom schema as registered.&lt;/P&gt;
&lt;P&gt;Is there another configuration that s missing? I'd appreciate any help&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 23:31:54 GMT</pubDate>
    <dc:creator>a_c</dc:creator>
    <dc:date>2019-11-27T23:31:54Z</dc:date>
    <item>
      <title>Adding colums to the default user schema</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-colums-to-the-default-user-schema/m-p/317098#M4099</link>
      <description>&lt;P&gt;Hello community,
I'm trying to add more fields to the user creation form. I've been following the tutorial at &lt;A href="https://doc.nuxeo.com/nxdoc/how-to-add-new-fields-to-the-user-profile-or-group-profile/"&gt;https://doc.nuxeo.com/nxdoc/how-to-add-new-fields-to-the-user-profile-or-group-profile/&lt;/A&gt;
Where it shows how to override the default user schema. I followed suit and added my custom user schema as well as the references contribution as shown. I also modified the edit user layout to add my custom fields (they are simple nuxeo-inputs with the new user fields as values).&lt;/P&gt;
&lt;P&gt;However whenever I create or edit an user, those fields are never persisted; looking at the database those fields/columns are also missing.
I checked the server logs as well and found that the schema manager actually marks my custom schema as registered.&lt;/P&gt;
&lt;P&gt;Is there another configuration that s missing? I'd appreciate any help&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 23:31:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-colums-to-the-default-user-schema/m-p/317098#M4099</guid>
      <dc:creator>a_c</dc:creator>
      <dc:date>2019-11-27T23:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding colums to the default user schema</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-colums-to-the-default-user-schema/m-p/317099#M4100</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Here is what has to be done to update the user profile.&lt;/P&gt;
&lt;H3&gt;Studio side&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;use the XSD file (for example &lt;STRONG&gt;my_custom_user.xsd&lt;/STRONG&gt;) from the user schema (see documentation above) as a basis and keep the namespace, etc.&lt;/LI&gt;
&lt;LI&gt;add the fields you want&lt;/LI&gt;
&lt;LI&gt;head over to &lt;STRONG&gt;CONFIGURATION / Resources / Schemas&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;import the XSD file&lt;/LI&gt;
&lt;LI&gt;go to &lt;STRONG&gt;CONFIGURATION / Advanced Settings / XML Extensions&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;add the following configuration:&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension point="schema" target="org.nuxeo.ecm.core.schema.TypeService"&amp;gt;
  &amp;lt;!-- override default user schema --&amp;gt;
  &amp;lt;schema name="user" override="true" src="data/schemas/my_custom_user.xsd"/&amp;gt;
&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;OL&gt;
&lt;LI&gt;to double-check those steps were effective, you can go check into your database that the fields are indeed present in the &lt;STRONG&gt;users&lt;/STRONG&gt; table after synching your project server-side and restarting Nuxeo.&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;Web UI side&lt;/H3&gt;
&lt;P&gt;After checking the code, you will need to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;override the &lt;STRONG&gt;nuxeo-edit-user.html&lt;/STRONG&gt; element by writing a custom element:&lt;BR /&gt; /&amp;gt;
&lt;A href="https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/nuxeo-user-group-management/nuxeo-edit-user.html"&gt;https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/nuxeo-user-group-management/nuxeo-edit-user.html&lt;/A&gt;&lt;BR /&gt; /&amp;gt;
adding the field(s) you just added to the schema&lt;/LI&gt;
&lt;LI&gt;override the &lt;STRONG&gt;nuxeo-create-user&lt;/STRONG&gt; element&lt;BR /&gt; /&amp;gt;
&lt;A href="https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/nuxeo-user-group-management/nuxeo-create-user.html"&gt;https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/nuxeo-user-group-management/nuxeo-create-user.html&lt;/A&gt;&lt;BR /&gt; /&amp;gt;
so that it uses the custom element based on &lt;STRONG&gt;nuxeo-edit-user&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;override the &lt;STRONG&gt;nuxeo-user-group-management&lt;/STRONG&gt; element&lt;BR /&gt; /&amp;gt;
&lt;A href="https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/nuxeo-user-group-management.html"&gt;https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/nuxeo-user-group-management.html&lt;/A&gt;&lt;BR /&gt; /&amp;gt;
so that it uses the custom element based on &lt;STRONG&gt;nuxeo-create-user&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;override the &lt;STRONG&gt;nuxeo-user-group-management-page&lt;/STRONG&gt;&lt;BR /&gt; /&amp;gt;
&lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-admin/nuxeo-user-group-management-page.html"&gt;https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-admin/nuxeo-user-group-management-page.html&lt;/A&gt;&lt;BR /&gt; /&amp;gt;
so that it uses the custom element based on &lt;STRONG&gt;nuxeo-user-group-management&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;then you will be able to override the &lt;STRONG&gt;ADMINISTRATION_PAGES&lt;/STRONG&gt; slot in &lt;STRONG&gt;nuxeo--custom-bundle.html&lt;/STRONG&gt;&lt;BR /&gt; /&amp;gt;
so that it uses your overriden version of the &lt;STRONG&gt;nuxeo-user-group-management-page&lt;/STRONG&gt; element.&lt;BR /&gt; /&amp;gt;
(in Studio you can find it in &lt;STRONG&gt;Designer / RESOURCES / UI&lt;/STRONG&gt;)&lt;BR /&gt; /&amp;gt;
For reference the original slot definition is defined here:&lt;BR /&gt; /&amp;gt;
&lt;A href="https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-web-ui-bundle.html#L27"&gt;https://github.com/nuxeo/nuxeo-web-ui/blob/10.10/elements/nuxeo-web-ui-bundle.html#L27&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 05 Dec 2019 09:30:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-colums-to-the-default-user-schema/m-p/317099#M4100</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2019-12-05T09:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding colums to the default user schema</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-colums-to-the-default-user-schema/m-p/317100#M4101</link>
      <description>&lt;P&gt;Thank you so much for your answer.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 19:16:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-colums-to-the-default-user-schema/m-p/317100#M4101</guid>
      <dc:creator>a_c</dc:creator>
      <dc:date>2019-12-06T19:16:38Z</dc:date>
    </item>
  </channel>
</rss>

