Get-MgUserToDoList is a Microsoft Graph PowerShell cmdlet used to retrieve Microsoft To Do task lists associated with a specific user. These task lists act as containers for To Do tasks such as Tasks, Important, or any custom lists created by the user.
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 useful in automation and reporting scenarios where administrators or scripts need to:
It serves as the entry point for working with Microsoft To Do lists programmatically.
Before running this cmdlet, connect to Microsoft Graph with the required permissions:
Connect-MgGraph -Scopes "Tasks.Read"
Basic syntax:
Get-MgUserToDoList [-UserId <String>]
You can pass either the UserPrincipalName (UPN) or UserId to retrieve all Microsoft To Do task lists owned by the user.
To retrieve all task lists for a specific user, use the following command:
Get-MgUserToDoList -UserId "user@example.com"
This command returns all Microsoft To Do lists (default and custom) associated with the specified user.
To filter task lists based on specific criteria, such as lists that are not completed, use the -Filter parameter:
Get-MgUserToDoList -UserId "user@example.com" -Filter "status ne 'completed'"
This helps narrow down results when working with large numbers of task lists.
| Key Point | Details |
| Cmdlet Name | Get-MgUserToDoList |
| Purpose | Retrieves Microsoft To Do task lists for a user |
| Required Scope | Tasks.Read |
| Target Resource | User To Do task lists |
| Common Use Case | Discover list IDs before retrieving or creating tasks |
| Automation Benefit | Enables structured task and productivity automation |
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.