Pergunta

Eu tenho fotos de funcionários que já estão carregadas no Active Directory.Eu gostaria de tê-los empurrado para o SharePoint para que eles estejam visíveis nas páginas do MySite e em todas as coleções do site.

Como faço para fazer isso?

Foi útil?

Solução

I found this great article on how to accomplish this.

Assuming that you already have basic user profile synchronization working, the steps are:

  1. Create an import PictureUrl mapping - Go to your Central Admin site "Manage Service Applications -> User Profile Service Application -> Manager User Properties -> Picture" and select "thumbnailPhoto" as the attribute. Choose the "Import" direction". Make sure that the edit settings are "Do not allow users to edit values for this property" if you do not want photos from SharePoint to export to active directory. Click "OK".

  2. Run a full profile sync - While still on the central admin site go to "Manage Service Applications -> User Profile Service -> Start profile synchronization" and select "Full". When it completes you will notice that the photo still doesn't show when you go to a user profile. There is one more step.

  3. Give yourself permission to push photos to MySite - Go to Central Admin and click on "Manage Service Applications". This time select the "User Profile Service Application" row and not the link. On the ribbon go to "Service Applications -> Sharing -> Permissions". Add your account and give it "Full Control" permission.

  4. Push the photos to MySite - This step requires that you have a MySite setup (Setup MySite). Open a powershell window and enter

    Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation "http://YourServerName/my"

    If you receive an "Object reference not set to an instance of an object" exception then make sure you followed step 3. This is caused by a permission error. Here is a link with more details.

Outras dicas

Thanks! Another helpful step by step guide to Import User Pictures from Active Directory to SharePoint 2010 My Site: http://www.sharepointdiary.com/2013/01/import-user-pictures-from-active-directory-to-sharepoint-2010-mysite.html

Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top