microsoftgraph / dotnetcore-console-sample

.Net Core console application for calling Microsoft Graph. Sample built from scratch.
MIT License
89 stars 62 forks source link

Access Planner Plans from Multiple Organisation #79

Open parthrawal opened 3 years ago

parthrawal commented 3 years ago

I have a SAAS based application which is configurable to import planner plans. while i can successfully import plans using Graph API based on logged in user. i was wondering if i can use delegate approach to sync planner plans with my cosmos database without user interactions. to achieve this. it currently relies on azure app (Client Id, Tenant Id and service account information) where organisations have to create an app with API permission which they store as primary information with my app. which i use to get the planner data. is there a better approach where i can avoid asking other organisations to create azure app (via azure app registrations).

BrianTJackett commented 3 years ago

Currently the Planner APIs on Microsoft Graph only support delegated permissions (interactive user context). There are "workarounds" using a service account and non-interactively logging in as that user, but that introduces security concerns (ex. how are the credentials stored and retrieved securely, etc.)

I would recommend upvoting / adding your comments to this request to add application permissions: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/application-permissions-for-planner-apis/idi-p/2266449