Application Permissions für Planner in Microsoft Graph

An der Ignite im Oktober 2022 hat Microsoft angekündigt, Microsoft Graph unterstützt zukünftig Application Permissions für die Planner-API.
Bisher waren bei Planner über Microsoft Graph nur Delegated Permissions möglich. Für Delegated Permissions muss ein Konto Mitglied des Plans sein, um Daten aus dem Plan abzufragen oder für die Erstellung von neuen Inhalten. Mit Application Permissions ist das Konto im Plan nicht mehr erforderlich.

Erwähnt wurde ein Zeitplan ab Ende November 2022. Bis Anfang Januar funktionierte es nicht. Nun sind die Dokumentationen der APIs (Beta und V1) aktualisiert worden.

Aktualisierte Planner-API Dokumentation
Aktualisierte Planner-API Dokumentation

Ein neuer Test über das Graph PowerShell Modul gibt jetzt Daten zurück. Anfang Januar zeigte es noch einen Fehler über Berechtigungen. Im Test frage ich alle Planner Pläne einer Microsoft 365 Gruppe ab.

PowerShell
Import-Module Microsoft.Graph.Authentication
Connect-MgGraph -ClientID <AzureAppID> -TenantId <TenantID> -CertificateThumbprint <CertificateThumbprint> 


$Url = "https://graph.microsoft.com/v1.0/groups/374767f3-111e-47c4-8ac8-0ccda91779fb/planner/plans"
$Results = Invoke-MgGraphRequest -Method Get -Uri $Url -ContentType "application/json;charset=utf-8"
$Results.Value


Ergebnisse über Planner-API mit Application Permissions
Ergebnisse über Planner-API mit Application Permissions
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 *