I am trying to retrieve a list of contacts for an Office 365 account using the Microsoft Graph API. When I sign in using a hotmail account, everything works. However, if I use an Office 365 account I get the following response error after calling "https://graph.microsoft.com/beta/me/contacts"
{
"error": {
"code": "ErrorInvalidUser",
"message": "The requested user '[email protected]' is invalid.",
"innerError": {
"request-id": "f03da31a-a0d0-4095-9423-8992560c9b26",
"date": "2017-08-09T20:37:16"
}
}
}
I have tried searching for the error on Google but I am unable to find any information that will tell me why Office 365 accounts don't work. Any help would be greatly appreciated.