“The tenant for tenant guid does not exist” even though user is listed on users endpoint?

后端 未结 2 2022
难免孤独
难免孤独 2021-01-13 15:00

I\'m trying to integrate with Outlook\'s APIs (more specifically I want to list a users\' contacts, and be able to do some CRUD on them).

I created an Azure account,

相关标签:
2条回答
  • 2021-01-13 15:35

    Authenticate with your own identity: This will use your own identity (the app identity). This OAuth flow is called client credentials grant flow.

    'Authenticate with your own identity' is not an allowed method for Microsoft Personal accounts.

    Check this source here, if any of us are using a personal account then the client credentials flow won't work for us. https://github.com/O365/python-o365#authentication-steps

    0 讨论(0)
  • 2021-01-13 15:43

    I didn't reproduce your issue on my side. My steps are as below for your reference.

    1.Register an Application on Azure portal and grant it graph permission.

    2.Get the access token.

    3.Before calling the api, you need to confirm that the account needs to be a valid email address. Mine is demo101@**.onmicrosoft.com.

    4.Call the graph api.

    0 讨论(0)
提交回复
热议问题