问题
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