Skip to content

wobba/SPO-Trigger-Reindex

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

SPO Trigger Re-index scripts by [@mikaelsvenson]

Scripts

  • reindex-users.ps1 - Script to mark SharePoint user profiles to be picked up at the next crawl.
  • reindex-users-v2.ps1 - More efficient script to mark SharePoint online content to be picked up at the next crawl.

Re-indexing of user profiles

Todd Klindt created an updated PowerShell function based on the script which is worth taking a look at.

https://pnp.github.io/script-samples/spo-request-pnp-reindex-user-profile/README.html


See How to trigger re-indexing of user profiles in SharePoint On-line for an explanation of user profile indexing

The v1 script will iterate all user profiles in SPO to force a trigger of re-indexing of the profiles on the next crawl.

The v2 script is using the profile bulk-import option to do the same. A much more efficient way especially if you have many profiles to update.

Monitoring has shown that indexing of user profiles happens at approximately a 4 hour interval (per December 10th 2014). I have seen as low as 2h (night time) and as high as 8h (daytime).

Example 1

.\reindex-users.ps1 -url https://contoso-admin.sharepoint.com # admin site required

You can also add the switch -changeProperty to choose if you want to use SPS-Birthday or Department (now default) as your change property.

Example 2

.\reindex-users-v2.ps1 -url https://contoso.sharepoint.com # any non-admin site

About

Scripts to trigger re-indexing of user profiles and content in SharePoint Online

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published