cancel
Showing results for 
Search instead for 
Did you mean: 

howto extend Person model

adamsz
Champ in-the-making
Champ in-the-making
I'd like to synchronize users from my ldap server. I have to synchronize additional fields, like Department, Room, and other. How to extend build-in Person model (cmSmiley Tongueerson from contentModel.xml) to have those properties and how to show them on Profiles pages?

Best regards
Adam
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
You can add additional fields in your extension Spring configuration file:
1. Copy the alfresco/subsystems/Authentication/common-ldap-context.xml in your alfresco/extension folder
2. Modify it for adding your additional properties, each property will be a new entry in the map such as the following:


<property name="personAttributeMapping">
            <map>
….
<entry key="YOUR_CUSTOM_QNAME_PROPERTY">
                    <value>${ldap.synchronization.yourCustomPropertyAttributeName}</value>
                </entry>
            </map>

</property>

3. Add the interpolated property ldap.synchronization.yourCustomPropertyAttributeName in your LDAP properties file.

Hope this helps Smiley Happy