IAMinerva
HomeBlogAbout
m3M365 NewscoMicrosoft CopilotteMicrosoft TeamsshSharePoint & OneDriveinIntune & SecurityexExchange & OutlookpoPower PlatformazAzure & Entra IDtuTutorials & GuidesevEvents & ConferencesseSecuritywiWindows
IAMinerva

Professional blog dedicated to the Microsoft 365 ecosystem.

Quick links

HomeBlogAboutNewsletter

Stay informed

Get the latest Microsoft 365 news delivered straight to your inbox.

© 2026 IAMinerva. All rights reserved.

Built withNext.js&Tailwind
Generer un Rapport Hebdomadaire des Tâches Inachevées sur Planner
BlogM365 NewsGenerate a Weekly Report of Incomplete Tasks on Planner
M365 News#Microsoft Graph#Planner#Azure Automation

Generate a Weekly Report of Incomplete Tasks on Planner

Create an automated weekly email with PowerShell to track incomplete tasks in Planner. Leverage Azure Automation and Microsoft Graph.

Houssem MAKHLOUF
April 15, 2026
4 min read

TL;DR par Minerva

généré par IA

Create an automated weekly email with PowerShell to track incomplete tasks in Planner. Leverage Azure Automation and Microsoft Graph.

Introduction

Microsoft Planner is a powerful tool for managing collaborative tasks in the Microsoft 365 ecosystem. However, tracking incomplete tasks can become a challenge for system administrators and advanced users. This article explains in detail how to automate the generation and sending of a weekly email detailing incomplete tasks in Planner.

i

Good to Know

To implement this solution, you will need to use the Microsoft Graph PowerShell SDK, as well as configure an Azure Automation account with the necessary permissions.

Analysis of Incomplete Tasks

The objective of this process is to centralize information on incomplete tasks for each team member. Here are the fundamental steps:

  • Identify a security group containing the targeted members.
  • Find all plans associated with Microsoft 365 Groups to which each member belongs.
  • Retrieve open (non-completed) tasks in these plans.
  • Send a personalized email to each user with a summary of open tasks, included as a direct link to each task.

Using the Microsoft Graph API with PowerShell

In this context, we use the Planner module from Microsoft Graph PowerShell SDK. Here are the key cmdlets:

  • Get-MgGroupPlannerPlan: Get plans associated with a Microsoft 365 group.
  • Get-MgPlannerPlanTask: Retrieve tasks from a specific plan.
  • Get-MgPlannerPlanBucket: Get the subdivisions (buckets) of a plan.

Example Script to Retrieve Incomplete Tasks

⚡PowerShell
1[array]$Tasks = Get-MgPlannerPlanTask -PlannerPlanId $Plan.Id -All -PageSize 500 -Property Id, Title, CompletedDateTime, StartDateTime, DueDateTime, BucketId, Assignments -ErrorAction Stop
2
3$IncompleteTasks = $Tasks | Where-Object { $null -eq $_.CompletedDateTime }
!

Attention

The Graph API for Planner has major limitations, such as the inability to filter directly on properties like percentComplete. This filtering must be performed client-side.

Azure Automation Configuration

Once the script is tested in interactive mode, it must be integrated into an Azure Automation runbook. Here are the main steps:

1

Create an Azure Automation Account

Log in to the Azure portal and create an automation account to host the script.

2

Assign Necessary Permissions

Ensure that the automation account has permissions to access Microsoft Graph. This includes permissions for Planner and Microsoft 365 Groups.

3

Import Required Modules

Add the necessary modules to your automation account, including the Microsoft Graph PowerShell SDK module.

4

Test and Schedule the Runbook

Execute the runbook interactively to validate its operation, then schedule its execution. For example, configure it to run every Saturday at 7 AM.

Automated Report Delivery via Email

The script generates a summary of incomplete tasks in email form and includes:

  • Task title.
  • Start date and due date.
  • Hyperlink to the task in the Planner application.

Code Excerpt: Sending an Email

⚡PowerShell
1Send-MailMessage -To $UserEmail -Subject "Weekly Report: Incomplete Tasks" -Body $EmailBody -SmtpServer "smtp.office365.com" -Credential $SMTPAuth

Limitations of the Graph API for Planner

Although the Graph API is a robust interface, certain limitations remain:

  • Lack of search or sorting of tasks within plans.
  • No method to list plans where a user has assigned tasks. This operation requires navigation through Microsoft 365 groups.
✦

Tip

Use client-side methods to structure and filter data after retrieval. This ensures greater flexibility in processing results.

Conclusion

Automating the management of incomplete tasks in Planner is a process that combines PowerShell and the capabilities of Azure Automation. Despite the challenges posed by API limitations, this approach improves team productivity while ensuring structured tracking.

As a system administrator or cloud engineer, you can adapt this script to other business scenarios by leveraging the capabilities of Microsoft Graph PowerShell SDK and Azure Automation.

Ă—

Important

Make sure to secure your authentication parameters and comply with your organization's security policies when configuring automation.

Share:
HM

Houssem MAKHLOUF

Microsoft 365 enthusiast & IT professional.

Previous article

Microsoft Entra Passkeys: Registration and Delays Explained

Apr 15, 2026
Next article

How to Create a List with a Kanban View in SharePoint

Apr 15, 2026

Related articles

Exécution de scripts PowerShell pour auditer des applications AI et gérer leurs enregistrements.copilot

Audit and Manage AI Applications with PowerShell

Audit unauthorized AI applications in Entra ID with PowerShell and Microsoft Graph to strengthen control and security.

Jun 28, 20264 min
Graphiques abstraits et géométriques avec des couches de couleurs translucides.exchange

Converting Exchange IDs for Microsoft 365 Graph API

Convert Exchange identifiers (storeId, entryId, RestId) for Graph API and targeted eDiscovery. Technical guide with complete PowerShell scripts.

Jun 28, 20267 min
Arbre stylisé en doré sur fond noir avec des éléments circulaires.azure

Choosing the Right Extension Type in Microsoft Entra

Discover Microsoft Entra extension types and choose the optimal configuration for your directory objects based on their usage.

Jun 27, 20264 min