Office 365: thumbnailPhoto - Obtaining Photo Sizes from Active Directory

Office 365 customers can set the thumbnailPhoto attribute in on-premise Active Directory to have user photos synchronized to Office 365 via Directory Synchronization (DirSync). Exchange Online limits photo size to 10KB. The script sample obtains photo size from Active Directory.

4 Star
6,076 times
Add to favorites
E-mail Twitter Digg Facebook
  • Undercounting photo size?
    2 Posts | Last post November 04, 2013
    • At line 55, there's this instuction:
      $PicSize = (($ByteArray.Count)/1.333)/1KB
      Why is there the 1/1.333 factor?
      As a matter of fact, I have done some manual countings using some user accounts as sample and the photo (data) size is always bigger than GetThumbnailPhotoSize.ps1 gives.
      I'm afraid this 1/1.333 factor is incorrect.
    • Just noticed that this script was designed for Exchange Online, while I used it in Exchange 2010.  Does that explain the factor?
  • Only [User} can update this photo
    1 Posts | Last post October 14, 2013
    • On Manage User Profiles page under Picture, there is a message "Only [User Last, First name] can change this photo."  There is no opportunity to upload a picture.  I have only come across this one instance.  All other users in our company have "Upload picture" button.
  • Resource Photos
    1 Posts | Last post August 28, 2013
    • Our users are AD synched, but not our resources (conference rooms).  They exist only in O365 (Exchange online).
      I've got photos working for our users by setting them in AD on prem.
      How can I set an image to be used with o365 resource mailboxes?