List all SPFx field customizer
List all SPFx field customizers
Summary
This is a simple PnP PowerShell script to list all SPFx field customizers in a SharePoint Online environment.
It's done by scarping your entire tenant, every site, and every field on every list, and checking if the ClientSideComponentId is set to a non-empty value, which indicates that the field has a customizer applied.

In light of the recent announcement from Microsoft you might want to get a holistic picture of your tenants usage of Field Customizers.
$AdminUrl = "https://<Tenant>-admin.sharepoint.com/";
$FieldCustomizers = @()
Connect-PnPOnline $AdminUrl # <Your connection parameters go here>
$sites = Get-PnPTenantSite
foreach($site in $sites){
Write-Host "Processing site: $($site.Url)" -ForegroundColor Cyan
$siteCon = Connect-PnPOnline -Url $site.Url -ReturnConnection # <Your connection parameters go here>
$lists = Get-PnPList -Connection $siteCon
foreach($list in $lists){
Write-Host "Processing list: $($list.Title)" -ForegroundColor Yellow
$fields = Get-PnPField -List $list -Connection $siteCon
foreach($field in $fields){
if($field.ClientSideComponentId -ne [Guid]::Empty){
$FieldCustomizers += [PSCustomObject]@{
SiteUrl = $site.Url
ListTitle = $list.Title
FieldTitle = $field.Title
FieldInternalName = $field.InternalName
ClientSideComponentId = $field.ClientSideComponentId
ClientSideComponentProperties = $field.ClientSideComponentProperties
}
}
}
}
}
# Export the results to a CSV file
if ($FieldCustomizers.Count -eq 0) {
Write-Host "No field customizers found." -ForegroundColor Red
return
}
Write-host $FieldCustomizers | Format-Table -AutoSize
$FieldCustomizers | Export-Csv -Path "FieldCustomizers.csv" -NoTypeInformation
Contributors
| Author(s) |
|---|
| Dan Toft |
Disclaimer
THESE SAMPLES ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Tool documentation & references
- Want to learn more about PnP PowerShell and the cmdlets
Check out the PnP PowerShell site to get started and for the reference to the cmdlets.
- Want to learn more about CLI for Microsoft 365 and the commands
Check out the CLI for Microsoft 365 site to get started and for the reference to the commands.
- Want to learn more about Microsoft Graph PowerShell SDK and the cmdlets
Check out the Microsoft Graph PowerShell SDK documentation site to get started and for the reference to the cmdlets.
- Want to learn more about Power Apps PowerShell and the cmdlets
Check out the Power Apps PowerShell documentation site to get started and for the reference to the cmdlets.
- Introduction to the SharePoint Online Management Shell
Check out the SPO Management Shell documentation site to get started and for the reference to the cmdlets.
- Want to learn more about Microsoft Teams PowerShell and the cmdlets
Check out the Microsoft Teams PowerShell documentation site to get started and for the reference to the cmdlets.
- Want to learn more about Azure CLI and the commands
Check out the Azure CLI documentation site to get started and for the reference to the commands.
- Want to learn more about Whiteboard Admin cmdlets
Check out the Whiteboard Admin cmdlets documentation site to get started and for the reference to the commands.
- Want to learn more about Teams Toolkit CLI
Check out the documentation site to get started and for the reference on performing operations on agents