Access to Microsoft Planner via Microsoft Graph API with multi-factor authentication

Copper Contributor

Hi guys, 

 

currently only delegated personal users are supported to access the Microsoft Graph API to call Microsoft Planner content. I want to use the Microsoft Graph API to write an sychronisation between Microsoft Planner and an external application. Normally I use an application permission for it, but this is not supported.

 

My plan:

  1. Creating a 'service user' and this user will be added to all groups which are relevant for the sychronisation
  2. Create App Registration (Permission for Group.Read.All, Group.ReadWrite.All)
  3. The 'service user' add, delete, update tasks/buckets/plans (access the Graph API)

 

My problem:

Unfortunately our organisation policy uses the multi factor authentification because we got a official suggestion from Microsoft to do it (for security reasons). It's not an option to change this. If I want to 'get a user access token' to access the Graph API for Microsoft Planner details

Spoiler
https://login.microsoftonline.com/{{TenantID}}/oauth2/v2.0/token

, I get the following error message: 

 

 

{
    "error": "invalid_grant",
    "error_description": "AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000003-0000-0000-c000-000000000000'.\r\nTrace ID: 7c204f9a-464b-42b4-bc59-f0d48a1f7e00\r\nCorrelation ID: c56eedae-c6fe-4944-8d80-611fbe829080\r\nTimestamp: 2020-05-12 13:03:17Z",
    "error_codes": [
        50076
    ]
}

 

 

 

Solution: 

The problem seems to be the multi factor authentification. Is there a way to access the Microsoft Graph API for Microsoft Planner with multi factor authentification? Or is there another to way to access? 

 

Thank you in advance

TobiTheNerd

 
 
0 Replies