Get-MgUserTodoTask is a Microsoft Graph PowerShell cmdlet used to retrieve Microsoft To Do tasks associated with a user. It allows administrators and scripts to fetch tasks either across all task lists or from a specific To Do list, along with detailed task properties such as due dates, status, and importance.
Try the M365Corner Microsoft 365 Reporting Tool â your DIY pack with 20+ out-of-the-box M365 reports for Users, Groups, and Teams.
This cmdlet is ideal for automation and reporting scenarios, such as:
It provides programmatic visibility into user task data without manual access to the To Do UI.
Before running this cmdlet, connect to Microsoft Graph with the required permissions:
Connect-MgGraph -Scopes "Tasks.Read"
Basic syntax:
Get-MgUserTodoTask -UserId <String> [-TodoTaskListId <String>]
You can retrieve all tasks for a user or limit the output to tasks from a specific Microsoft To Do list by providing the -TodoTaskListId parameter.
Note: -TodoTaskListId can be got by running Get-MgUserToDoList cmdlet and passing the -UserID.
This command retrieves all to-do tasks for the specified user.
Get-MgUserTodoTask -UserId "user@domain.com"
This command retrieves tasks from a specific to-do list for the specified user.
Get-MgUserTodoTask -UserId "user@domain.com" -TodoTaskListId "AAMkAGVmMDEzY2M2LTYyYmYtNGJkNC1hOTQyLWZkN2NiNWE4ZDQ1YQBGAAAAAABuvOM0dzGRQpWnUljGvYH2BwA3j2cyBh+8Ro7AAA="
This command retrieves only selected task properties to reduce output size.
Get-MgUserTodoTask -UserId "user@domain.com" -Select "subject,dueDateTime"
| Key Point | Details |
| Cmdlet Name | Get-MgUserTodoTask |
| Purpose | Retrieves Microsoft To Do tasks for a user |
| Required Scope | Tasks.Read |
| Target Resource | User To Do tasks |
| Supports Filtering | Yes (via list selection and property selection) |
| Automation Benefit | Enables task audits and productivity reporting |
Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.
Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.
© Created and Maintained by LEARNIT WELL SOLUTIONS. All Rights Reserved.