Felipe Costa Gualberto
Felipe Costa Gualberto

Reputation: 1117

Get all planner tasks created by an user

I want to get all tasks my user created.

I tried to use https://graph.microsoft.com/v1.0/drive/root/createdByUser/planner/tasks endpoint in the Graph Explorer, but I got error 500 (internal server error).

The official documentation is here: https://learn.microsoft.com/en-us/graph/api/planneruser-list-tasks?view=graph-rest-1.0&tabs=http

Do you have any suggestion how I can get all the planner tasks I created?

Upvotes: 0

Views: 764

Answers (1)

Tarkan Sevilmis
Tarkan Sevilmis

Reputation: 1508

Tasks created by a user is not a supported query. People can lose access to tasks that they have created (e.g. if they are removed from groups). The closest operation you can do is to loop over the plans in the groups you are a member of, read the plans in those tasks and see which ones were created by your user. The API linked in the question will return the tasks assigned to you.

Upvotes: 1

Related Questions