posts
Debugging SharePoint Search with PnP PowerShell and Crawl Logs
Summary Investigates missing search results despite crawl entries with no errors. Correlates SPItemModifiedTime blank entries with unsearchable files (while noting some blanks still indexed, so additional checks are required). Provides a PnP PowerShell script to detect affected items at scale. Shares remediation and prevention guidance. Table of Contents Background Symptoms Investigation Tenant-wide Detection Script How the Script Works Results Root Cause Fix Prevention Tips References Background A particular document library stopped returning many files in SharePoint search, even though the crawl log showed entries without errors.
posts
Add Power Apps Permission Errors in Entra ID to refer in PnP PowerShell
Summary Error AADSTS650057 Invalid resource occurs when https://service.powerapps.com isn’t included in the app registration permissions for PnP.PowerShell. Fix by adding the Power Apps Service API with user delegated permission in Entra ID. Optional: add the permission through the app manifest with requiredResourceAccess. Symptom If https://service.powerapps.com from the entra ID used in PnP PowerShell is missing, you’ll see an error similar to:
Get-PnPPowerApp: AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client’s application registration.
posts
SharePoint Content Type Publishing: Understanding the Push-to-Pull Model Change
SharePoint’s content type publishing model underwent a significant transformation in 2021-2022, shifting from a “push everywhere” approach to a more efficient “pull as needed” model. This change optimizes synchronization by ensuring content types are only updated on sites where they’re actively in use, reducing unnecessary load and improving performance across large tenants. This guide explains how the new model works and what it means for SharePoint administrators and site owners.