user's photo from AD to Alfresco

Showing results for 
Search instead for 
Did you mean: 
Active Member

user's photo from AD to Alfresco


I synchronize user settings from AD, but there is no direct way to transfer photos.
We have: photo in user settings in AD
matching parameters in common-ldap-context.xml

<entry key="cm:firstName">
<entry key="cm:lastName">
<entry key="cm:telephone">
<entry key="cm:mobile">
<entry key="cm:jobtitle">

 where (from file)


but record

<entry key="cm:avatar">

where ( file)


does not work.

Maybe there is some solution to this issue?
Help me please.

2 Replies
Member II

Re: user's photo from AD to Alfresco

do you find a solution?
I have the same problem as you.


Re: user's photo from AD to Alfresco

Since images in LDAP are binary data / BLOBs, and the Alfresco element for user's avator is managed via a child-association, which isn't handled in the same way that any other, trivial properties are, this is plain not possible using any configuration with default Alfresco. You will need to use addons for this. In one of my addons I once added support for handling photos in LDAP sync, but to be fair, I haven't updated that addon in a long time to be compatible with newer Alfresco versions (I no longer work with the customer for which I originally created that addon, and there hasn't been any other interest from the community). I know that others have also implemented similar functionality, e.g. with a quick Google search I found a config snippet in another module that looks to support avatar synch.