如何使用MicrosoftGraph API获取用户的联系人文件夹列表
我无法通过MSGraph API访问用户帐户中的其他联系人文件夹.
I can't get access to the other contact folders in a user's account, through the MSGraph API.
我可以在默认文件夹中获取联系人.但是,当我尝试通过该网址的GET请求获取该帐户的其他联系人文件夹时
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
我得到一个空数组
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('user%domain.com')/contactFolders",
"value": []
}
当我查看解码的jwt时,可以看到在作用域中有Contacts.ReadWrite
和Contacts.ReadW
.我相信就足够了.另外,因为我可以从默认文件夹中读取联系人.这给我的印象是我的应用程序已在AZ AD中正确设置.
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.
我还想念什么?
使用beta端点有效.
Using the beta endpoint worked.
https://graph.microsoft.com/beta/users /user@domain.com/contactfolders