PnP

How to Avoid List Throttling in SharePoint

Worth a direct correction before anything else: the “indexed column” PowerShell example that circulates for this topic (`Set-PnPListItem` with a value) doesn’t create an index at all — it just sets a field’s value on one item, something entirely different. This post covers the real mechanism for indexing a column, the real cap that mechanism […]

How to Avoid List Throttling in SharePoint Read More »

SharePoint ‘Save Site as Template’ Challenges

“Save Site as Template” used to be the easy answer to “how do I spin up another site that looks like this one” — export the structure, lists, and content types to a .wsp file, apply it to a new site, done. It’s still there in SharePoint On-Premises. In SharePoint Online, it’s effectively gone for

SharePoint ‘Save Site as Template’ Challenges Read More »

Gulp: Automate Your Workflow Like a Pro

Gulp is a JavaScript task runner that automates the repetitive parts of a front-end build — minification, compilation, linting, browser reload — using plain JavaScript instead of a config file. It processes files through Node.js streams rather than writing intermediate files to disk, which is a meaningful part of why it’s fast: less disk I/O

Gulp: Automate Your Workflow Like a Pro Read More »

When Should We Use SharePoint Group and AD Group?

Managing user permissions efficiently is crucial in any SharePoint environment. One of the common dilemmas administrators face is choosing between SharePoint Groups and Active Directory (AD) Groups for managing permissions. Both have their strengths and weaknesses, and understanding when to use each is essential for optimizing security and administration. What is a SharePoint Group? SharePoint

When Should We Use SharePoint Group and AD Group? Read More »

Methods on how to Add Attachments to SharePoint List

SharePoint doesn’t have one “add attachment” button that works everywhere — which method you reach for depends on whether you’re writing client-side JavaScript, building an SPFx web part, or automating something from a script. The three approaches below all do the same thing: attach a file to a specific list item. The difference is what

Methods on how to Add Attachments to SharePoint List Read More »

SharePoint REST API File Uploads Using JavaScript and PnPjs

Two ways to upload a file to a SharePoint document library via code — raw REST calls, or PnPjs — plus what changes once the file is big enough that a single request isn’t the right approach anymore. In this post: Option 1: raw REST API · Option 2: PnPjs · Large files: chunked uploads

SharePoint REST API File Uploads Using JavaScript and PnPjs Read More »

Remove All Permissions in a SharePoint Site Collection

Sometimes a SharePoint site collection needs to be locked down to just you — before a migration, before deletion, or because everyone who had a reason to be in there no longer does. This covers both ways to strip every permission except your own: through the admin center by hand, or with PowerShell when you’re

Remove All Permissions in a SharePoint Site Collection Read More »

SharePoint Data Handling with PnP Batching Queries

Updating a thousand SharePoint list items one request at a time is slow and burns through API throttling limits fast. PnPjs batching bundles multiple operations into a single HTTP call instead — here’s the syntax for both the older and current versions of the library, and the real limit worth knowing before you rely on

SharePoint Data Handling with PnP Batching Queries Read More »

SPFx: Check if User is an Admin or an Owner is SharePoint

In this post: Introduction · Understanding SharePoint User Roles · Checking If a User Is an Admin in an SPFx WebPart · Checking in an Application Customizer · Alternative: Checking Site Owners Group Membership · The simpler check you probably want first · Pros and Cons of Different Approaches · Related reading Introduction When working

SPFx: Check if User is an Admin or an Owner is SharePoint Read More »

How to Export SharePoint Site Users to an Excel Spreadsheet

Worth a direct correction before anything else: neither the classic on-premises COM-automation script nor the “PnP PowerShell” example commonly shown for this actually produces a real Excel file without a caveat — the COM approach genuinely needs Excel installed on the machine running it, and the PnP example usually exports to CSV, not a true

How to Export SharePoint Site Users to an Excel Spreadsheet Read More »