Sync photos with AD

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:51 AM - edited 05-28-2025 09:31 AM
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.
glide.ldap.binary_attributes
glide.ldap.binary_attaributes (agent properties)
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 09:00 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 10:08 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 10:16 AM
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 (/)/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 09:01 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader