Sync photos with AD

Brian Lancaster
Tera Sage

I followed the KB article How to import photos from Active Directory (AD) into ServiceNow using an LDAP Import. But it is not pulling in any of the photos.

thumbnailPhoto - default was much longer then what shows in the article.

BrianLancaster_0-1748447115861.png

glide.ldap.binary_attributes 

BrianLancaster_1-1748447150146.png

glide.ldap.binary_attaributes (agent properties)

BrianLancaster_2-1748447206006.png

Also have the onAfter script as it it appears in the KB article.

 

Did I miss something? Sometimes nothing shows in sys_attachments and sometimes what I expect appear but its always for the same users.

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Brian Lancaster 

so what debugging did you perform?

Did you try adding gs.info() in onAfter script?

are you receiving data properly in the staging table?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes the I used what they had already in the script. I can also see the thumbnailPhoto field is populated for a lot of in the import for way more users than what shows in sys_attachments for the photo field.

I'm note sure what is supposed to appear the thumbnail field but is seems to just be a bunch of random characters starting with a forward slash (/)/

Ankur Bawiskar
Tera Patron
Tera Patron

@Brian Lancaster 

check these links as well

AD Thumbnail Photos not importing using LDAP Import 

Import user photo from LDAP into S-N (reloaded) 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader