Remove the Store and Yammer app from the app launcher in Office 365

In 2016, Microsoft announced to have Yammer activated for all existing and new tenants by default to have increased usage of the workload in Office 365. With this announcement, not everyone was happy as every organization has it’s own set of protocol and road-map to enable or disable the services based on their business and technical needs. Many organizations that i have worked with are concerned to have an architectural and security review before they can enable any service. Remove the store and yammer app from the app launcher in Office 365 requires you to have a good hands on PowerShell scripting experience as this task can be done either via GUI or by leveraging PowerShell.

By default, when a user is assigned an E3 license and is logged into the portal the default app view will be something like this (depending on extra licenses you might have).

There are 2 options available to remove the store and yammer app from Office 365 app launcher. First option is to leverage GUI and second option is to leverage PowerShell.

Remove Yammer from the app launcher in Office 365

  • To remove yammer app from Office 365, one method is to navigate the properties of each and every user and uncheck the Yammer license.
  • Second option is to run the following script to remove Yammer license for everyone in the organization.
#Connect Office 365 using PowerShell
Connect-MSOlServices
#Get All Licensed Users
$users = Get-MsolUser | Where-Object {$_.isLicensed -eq $true}
foreach ($user in $users)
{
Write-Host “Checking ” $user.UserPrincipalName
$CurrentSku = $user.Licenses.Accountskuid
if ($currentSku.count -gt 1)
{
Write-Host $user.UserPrincipalName “Has Multiple SKU Assigned. Checking all of them”
for($i = 0; $i -lt $currentSku.count; $i++)
{
#Loop trough Each SKU to see if one of their services has the word Yammer inside
if($user.Licenses[$i].ServiceStatus.ServicePlan.ServiceName -like “*Yammer*” )
{
Write-host $user.Licenses[$i].AccountSkuid “has Yammer. Will  Disable” $NewSkU = New-MsolLicenseOptions -AccountSkuId $user.Licenses[$i].AccountSkuid -DisabledPlans YAMMER_ENTERPRISE
Set-MsolUserLicense -UserPrincipalName $user.UserPrincipalName -LicenseOptions $NewSkU
Write-Host “Yammer disabled for ” $user.UserPrincipalName ” On SKU ” $user.Licenses[$i].AccountSkuid
}
else
{
Write-host $user.Licenses[$i].AccountSkuid ” doesn’t have Yammer. Skip”
}
}
}
else
{
$NewSkU = New-MsolLicenseOptions -AccountSkuId $CurrentSku -DisabledPlans YAMMER_ENTERPRISE
Set-MsolUserLicense -UserPrincipalName $user.UserPrincipalName -LicenseOptions $NewSkU
Write-Host “Yammer disabled for ” $user.UserPrincipalName
}
}

Remove the Store app
Removing the store app is a much simpler task because since a couple of weeks/months there is a setting which can disable it for everyone immediately.

  • Log in to Office 365 portal as Global Administrator and navigate to Settings > Apps select “Store”.

pic2

  • By default, access is allowed to the store app but you can change the switch to “off”. Now click on save and you are done!

pic3

  • When a user will login again these 2 apps will be removed.

pic6

Conclusion:

In this blog post, we have review the methods to remove the yammer and Store app from Office 365 app launcher. This can help organization to restrict the users ability to send organizational data outside of the corporate network or install unwanted ad-Ins or application from store.