I have 300 site collections i need to change the theme on. I know you do this by cog -> change look -> theme and then you choose the theme you require. I have seen /_api/thememanager/ApplyTheme API but I cannot seem to get this to work and also i do not want to send off each theme settings, the theme is already there and out of the box. any idea to do this in REST , I am using MS FLOW as my REST API engine.

1 Answer 1


We can use PnP PowerShell to change theme for those site collections.


To get all site collections from the tenant, we can use the script below.

$cred = Get-Credential

Connect-PnPOnline "https://mytenant.sharepoint.com" -Credentials $cred
$SiteCollections = Get-PnPTenantSite
foreach ($SiteCollection in $SiteCollections)
   Connect-PnPOnline -Url $SiteCollection.Url -Credentials $cred


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.