how do I get the list of contact folders for a user with MicrosoftGraph API

一个人想着一个人 提交于 2020-02-29 06:08:30

问题


I can't get access to the other contact folders in a user's account, through the MSGraph API.

I am able to get the contacts in the default folder. But when I try to get the other contact folders for that same account with a GET request to this url

https://graph.microsoft.com/v1.0/users/user@domain.com/contactfolders

I get an empty array

{
  "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('user%domain.com')/contactFolders",
  "value": []
}

When I look at the decoded jwt I can see that I have Contacts.ReadWrite and Contacts.ReadW in the scopes. I believe that should be enough. Also since I can read contacts out of the default folder. Which gives me the impression that my app is set up correctly in AZ AD.

What else am I missing?


回答1:


Using the beta endpoint worked.

https://graph.microsoft.com/beta/users/user@domain.com/contactfolders



来源:https://stackoverflow.com/questions/43671620/how-do-i-get-the-list-of-contact-folders-for-a-user-with-microsoftgraph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!