Introduction
In SharePoint Online, we have O365 groups that are created for team sites, as long as the option is enabled in the admin center. Many times, there are scenarios where site owners or SharePoint administrators try to change/update the logo of the site through the site settings. However, there is a catch with that. Let’s see how it can be accomplished.
Issue
For a team site that is associated with an O365 group: if we try to change the logo of the site through site settings UI, the logo is updated, but it then reverts after few minutes.
This is because the logo in the site can be updated through changing it in the O365 group which is at the exchange level. Once the site again syncs back with the exchange server, the logo is reverted to that of the O365 group.
Solution
To solve this, the user should have access to edit the O365 group in the office web app - OWA. The group owners can do that if the setting is enabled at the tenant level.
If this setting is not enabled for group owners, the SharePoint admin can run the below PowerShell commands to update the site logo:
Connect-PnPMicrosoftGraph -Scopes "Group.ReadWrite.All","User.Read.All"
$group = Get-PnPUnifiedGroup -Identity <group display name>
$logo = "<logo file path in local drive>"
Set-PnPUnifiedGroup -Identity $group.GroupId -GroupLogoPath $logo
After running the above PnP PowerShell commands, it might take some time to reflect the new logo. It depends on the sync between exchange and SharePoint.