using Set-PnPWeb -Title to update a Modern Team Site does not retain the changed value after refreshing browser
Reporting an Issue or Missing Feature
Noticed that using the following PowerShell
Connect-PnPOnline -url https://yourtenant.sharepoint.com/sites/00004321 -Credentials $cred Set-PnPWeb -Title "00004321 Site Title Testing"
Will successfully update the Modern Team sites title in the SharePoint Online Site and this is confirmed when access the Active Sites list in the SharePoint Admin Console in o365, however if a user refreshes their browser when looking at the Site, the site's title will revert back to the original title used when creating the site, however the Site title in Central admin does not revert.
If the sites title is changed via central admin or via the Site Information option in the o365 UI the change remains.
Expected behavior
Set-PnPWeb -Title should retain the value used for the SharePoint sites title in and not change after refreshing a browser
Actual behavior
Run a powershell ise session in SharePoint Management console for SharePoint online - call the script to update the sites title, open a browser check central admin and name is changed, open browser go to sites url and site displays a new title.
Steps to reproduce behavior
Simply click refresh in your browser and the Site Title reverts back to its original group title
Which version of the PnP-PowerShell Cmdlets are you using?
- [ ] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
SharePointPnPPowerShellOnline 3.15.1911.0
How did you install the PnP-PowerShell Cmdlets?
Installed through the PowerShell Gallery with Install-Module
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Hi @RichBurdes1, this is built-in SharePoint functionality in that the root web title is always the same as the Group DisplayName property where the site is connected to a O365 Group. Although you can change it, it is written back shortly afterwards.
In non-group connected sites it may take a few minutes for the name change to reflect in the admin site as there's a hidden list which synchronises so often (for me it was ~5 minutes).
I get the same behavior with a non-connected STS#3 site, any ideas?