简体   繁体   中英

Office 365 Upload User Photo

We want to upload photos for users from a third party application / site. The user may or may not have a Office 365 Exchange mailbox. The user may or may not be an external user.

We are currently uploading profile photos to the SharePoint Online User Profile Service, but are finding the results to be extremely inconsistent across tenants for different users (with / without Exchange mailbox and Internal / external users).

So, which API (officially) should be used to upload a profile photo? Should it be Exchange, SharePoint UPS, Delve or Microsoft Graph?

I would look at uploading it into Exchange Online as that appears to be where the Microsoft provided PowerShell command ( Set-UserPhoto ) runs out of.

To get around the fact that some of the accounts may not have mailboxes, you can provision them, set photo, then de-provision them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM