0
votes

I need to read the tasks in a Plan on a daily batch process. I am retreiving the Plan ID during registration process by delegated permissions and save this ID in the application's database. On the daily batch process I am trying to access this Plan's tasks using; https://graph.microsoft.com/v1.0/planner/plans/{Plan ID}/tasks

I am getting "401 - Unauthorized: Access is denied due to invalid credentials" error. I've got the following permissions in the screenshot below, am I missing the required one or is it not possible to access this service with Application type permission?

Permission List

1
As per the error, credentials are invalid and it doesnt seem to be permission issue. Were you able to execute any rest call and get results with the same credentials. I tried with same permission as yours and was able to get the results using postman. Can you try postman and see if call to any other endpoint is working?Abhijeet Jadhav

1 Answers

0
votes

Planner currently does not support application only credentials. As a workaround to your problem, you can create an account to act as a user for the application, and add that to the groups you are interested as a member.