Share via

Microsoft Graph API - Planner Tasks Access Token Query

Luke Sloane-Bulger 81 Reputation points
2021-11-22T16:32:37.95+00:00

Hello,

I have an Access Token related query for the Microsoft Graph API for Planner Tasks.

I'm currently making an application that runs in the background, which gets our tasks on the planner and alerts if they've switched between the planner buckets.

Currently, I'm using the Delegated Workflow and permission set to get the access token as the Planner Task API calls do not currently support application permissions.

So I believe to get the Access Token you must login to a Microsoft Account.

I was hoping to do this without Human Intervention.

Can I confirm that there is no other way to get the Access Token for Planner Tasks without logging into Microsoft first? Otherwise, this will make my task a tad bit harder.

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

CarlZhao-MSFT 46,456 Reputation points
2021-11-23T02:56:48.797+00:00

Hi @Luke Sloane-Bulger

Yes, as you described in the question, the /planner/tasks api endpoints only support delegated permissions, so you must log in user.

Since it does not support application permissions, you cannot use an unattended daemon in the background to silently obtain application tokens. Currently, you can only use the delegated workflow of user login to obtain user tokens.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.