Blockierte Teams Apps ausblenden

Im Teams Admin Center können Administratoren einzelne oder generell Apps blockieren (Beispiel alle 3rd Party Apps).

3rd Party Apps global blockieren
3rd Party Apps global blockieren

Abhängig zur Blockierung zeigt es die Apps im Teams Admin Center entweder im Status “Blocked org-wide” oder nur Blocked, bei einzelnen Apps.

Blockierte Apps im Teams Admin Center
Blockierte Apps im Teams Admin Center

All die blockierten Apps sind im Teams App Store weiterhin sichtbar und mit einer Option für Beantragung ausgestattet. Mitarbeitende können blockierte Apps beantragen.

Blockierte Teams Apps sind eingeblendet
Blockierte Teams Apps sind eingeblendet

Oftmals möchten Organisationen blockierte Apps für Mitarbeitende gar nicht anzeigen. Microsoft kündigte an bis März 2023 soll es eine Möglichkeit geben blockierte Apps auszublenden. Später gab es von Microsoft keine weitere Informationen.

Die Möglichkeit wurde über Microsoft Graph bereitgestellt. Unter teamsAppSettings (Preview) wird das Property allowUserRequestsForAppAccess beschrieben.

allowUserRequestsForAppAccess
Indicates whether users are allowed to request access to the unavailable Teams apps.

Über PowerShell ist die Anpassung innerhalb kurzer Zeit erledigt. Für Microsoft Graph benötigt es die Berechtigung TeamworkAppSettings.ReadWrite.All.

Zuerst überprüfe ich die aktuelle Konfiguration.

PowerShell
Import-Module Microsoft.Graph.Authentication
Connect-MgGraph -Scopes TeamworkAppSettings.ReadWrite.All

$Url = "https://graph.microsoft.com/beta/teamwork/teamsAppSettings"
$Result = Invoke-MgGraphRequest -Method Get -Uri $Url -ContentType "application/json" 
$Result


Wie erwartet ist allowUserRequestsForAppAccess aktiv.

PowerShell

Nun die Konfiguration deaktivieren.

PowerShell
$Body = @"
    {   "@odata.type": "#microsoft.graph.teamsAppSettings",
        "allowUserRequestsForAppAccess": "false"
    }
"@

Invoke-MgGraphRequest -Method PATCH -Uri $Url -Body $Body -ContentType "application/json" 


In Teams wird die Änderung nach kurzer Zeit umgesetzt. Die blockierten Apps sind alle ausgeblendet.

Blockierte Teams Apps sind ausgeblendet
Blockierte Teams Apps sind ausgeblendet

Update vom 29. November 2023:

  • In Teams im Web sind die Apps nach kurzer Zeit ausgeblendet.
  • In den Teams Desktop Clients kann es, abhängig zum lokalen Cache, mehrere Tage dauern. Informationen zum Löschen des lokalen Teams Cache.
Share
Avatar photo

Tobias Asböck

Tobias is a Senior System Engineer with more than 10 years of professional experience with Microsoft 365 products such as SharePoint Online, SharePoint Premium, OneDrive for Business, Teams Collaboration, Entra ID, Information Protection, Universal Print, and Microsoft 365 Licensing. He also has 15+ years of experience planning, administering, and operating SharePoint Server environments. Tobias is a PowerShell Scripter with certifications for Microsoft 365 products. In his spare time, Tobias is busy with updates in the Microsoft 365 world or on the road with his road bike and other sports activities. If you have additional questions, please contact me via LinkedIn or [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *