How to Map (Sync) profile photo from Azure AD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2017 11:49 PM
Hi Team,
We have requirment to map Profile photo from Azure to ServiceNow. Is it possible and anyone done it?
Thanks,
Ahamed Rahiman
- 8,913 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2021 10:40 AM
Has anyone successfully implemented this after 3 years?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2022 08:36 PM
Yes. I have been successful in implementing this via the Flow Designer.
Requirements:
- OAuth connectivity to MS Exchange from ServiceNow & a valid token response
- Scope privileges - 'User.ReadWrite.All' (could perhaps get away with just read - go for RW first to be sure/safe)
- Integration Hub license
- Access to the following MS Graph API: https://docs.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0
- Access to AD User Principle Name data from within your instance of SN.
Method:
- Flow Action which includes a REST step:
- Notice how we have check the box 'Save as Attachment'.
- Now look up the sys_attachment record using the REST response (which will be the sys_id of the attachment record):
- Create an attachment record output:
- Now within your Flow apply the sys_id of the attachment record to both the sys_user and Live Profile tables:
So, in summary:
- ServiceNow to MS Graph with the right level of access
- OAuth with valid token
- Flow Integration Hub
- Rest call - gets profile pic as attachment and gives you sys_id
- Look up attachment record
- Apply it to sys_user and live_profile tables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2023 12:06 PM
Hello gputker,
Can you help us achieve syncing the user profile photo/Avatar from AZURE AD to ServiceNow?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2023 11:32 PM
Absolutely. What do you need in addition to what's above?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2023 10:19 AM
Your solution above explains getting photos from MS Exchange and I'm looking to import from Azure AD. Can you please help me achieve that?