Microsoft Graph订阅-MSA请求不支持Exchange Online资源 [英] Microsoft Graph Subscriptions - Exchange Online resources are not supported for MSA requests
问题描述
我认为我遇到的问题与 Microsoft Graph订阅-不允许的方法相同并回答问题,并有此评论 Microsoft Graph订阅-不允许的方法
I think I have sort of the same problem as Microsoft Graph Subscriptions - Method not Allowed and the question is answered and there is this comment Microsoft Graph Subscriptions - Method not Allowed
请求https://graph.microsoft.com/v1.0/subscriptions
{
"changeType": "created,updated,deleted",
"notificationUrl":"https://c5e719ba.ngrok.io/api/ms/watch",
"resource": "me/events",
"expirationDateTime":"2016-12-07T02:23:45.9356913Z",
}
{
"changeType": "created,updated,deleted",
"notificationUrl":"https://c5e719ba.ngrok.io/api/ms/watch",
"resource": "me/events",
"expirationDateTime":"2016-12-07T02:23:45.9356913Z",
}
响应标题
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: application/json
Server: Microsoft-IIS/8.5
request-id: 9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88
client-request-id: 9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"North Europe","Slice":"SliceA","ScaleUnit":"000","Host":"AGSFE_IN_4","ADSiteName":"DUB"}}
Duration: 261.5354
X-Powered-By: ASP.NET
Date: Tue, 06 Dec 2016 23:11:45 GMT
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: application/json
Server: Microsoft-IIS/8.5
request-id: 9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88
client-request-id: 9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"North Europe","Slice":"SliceA","ScaleUnit":"000","Host":"AGSFE_IN_4","ADSiteName":"DUB"}}
Duration: 261.5354
X-Powered-By: ASP.NET
Date: Tue, 06 Dec 2016 23:11:45 GMT
响应
{
"error": {
"code": "",
"message": "Exchange Online resources are not supported for MSA requests.",
"innerError": {
"request-id": "9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88",
"date": "2016-12-06T23:11:46"
}
}
}
{
"error": {
"code": "",
"message": "Exchange Online resources are not supported for MSA requests.",
"innerError": {
"request-id": "9bd7a103-5ec0-4ed5-b20d-f8fb4cc75b88",
"date": "2016-12-06T23:11:46"
}
}
}
但是我不确定应该怎么做才能使它正常工作,我没有使用azure,但是似乎如果我使用个人资料照片This operation in version 1.0 supports only a user's work or school mailboxes and not personal mailboxes.
).
But I'm not sure what should I do to make it work, I'm not using azure, but it seems that if I use Azure Active Directory B2C it should work, if this is what I really must do I think it's a hassle not being able to use all the microsoftgraph
without using an azure service. (I can live without getting the profile photo This operation in version 1.0 supports only a user's work or school mailboxes and not personal mailboxes.
).
我没有Office365帐户,所以我不知道如果使用我的应用程序的用户使用Office 365帐户登录也不会成为问题.我可以验证该帐户是否来自MSA或家庭/商业帐户,作为一种解决方法,我可以执行以下操作 https://github.com/microsoftgraph/msgraph-sdk-android/issues/26 ,如果我知道这是一个MSA帐户,我可以要求用户使用另一个帐户才能使用该应用程序...
I don't have an office365 account so I don't know if this won't be a problem if the user that uses my application sign in with an office 365 account.. because if it works with a home/commercial account I could verify if the account it's from MSA or home/commercial as a workaround I could do something like this https://github.com/microsoftgraph/msgraph-sdk-android/issues/26 and if I know that it's an MSA account I could ask the user to use another account in order to use the app...
所以问题是:为了使其与MSA(真实)帐户一起使用,我必须使用Azure Active Directory B2C
吗?
So the question is: in order to make it work with a MSA (live) account do I've to use Azure Active Directory B2C
?
推荐答案
现在可以在图形"beta"版本上为我/消息"和我/联系人"创建MSA(真实帐户)的订阅.
Subscriptions for MSA (Live accounts) can now be created on the graph "beta" version for "me/messages" and "me/contacts".
我们还支持OneDrive资源(例如我/驱动器/根")的MSA/实时订阅.
We also support such MSA/live subscriptions for OneDrive resources like "me/drive/root".
这篇关于Microsoft Graph订阅-MSA请求不支持Exchange Online资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!