findMeetingTimes API权限问题

时间:2019-04-22 23:31:24

标签: microsoft-graph microsoft-graph-calendar

我一直在尝试访问findMeetingTime API,但每次尝试都出现错误。我的应用程序具有允许的权限(已委派)。

我对下面的事情以及现在支持的应用程序意味着什么感到困惑

权限类型权限(从最低权限到最高权限) 委派的(工作或学校帐户)日历.Read.Shared,Calendars.ReadWrite.Shared 委派的(个人Microsoft帐户)不支持。 应用程序不受支持

有人可以解释这个过程吗?

错误

{
    "error": {
        "code": "BadArgument",
        "message": "Invalid user address",
        "innerError": {
            "request-id": "929f6e29-694b-4fbc-a789-bd679403ab63",
            "date": "2019-04-22T23:15:43"
        }
    }
}

请求

{
  "attendees": [
    {
      "type": "required",
      "emailAddress": {
        "name": "M",
        "address": "xx.xxxx@xxxxx.com"
      }
    }
  ],
  "locationConstraint": {
    "isRequired": "false",
    "suggestLocation": "false",
    "locations": [
      {
        "resolveAvailability": "false",
        "displayName": "xxx"
      }
    ]
  },
  "timeConstraint": {
    "activityDomain": "work",
    "timeslots": [
      {
        "start": {
          "dateTime": "2019-04-16T09:00:00",
          "timeZone": "Pacific Standard Time"
        },
        "end": {
          "dateTime": "2019-04-18T17:00:00",
          "timeZone": "Pacific Standard Time"
        }
      }
    ]
  },
  "isOrganizerOptional": "false",
  "meetingDuration": "PT1H",
  "returnSuggestionReasons": "true",
  "minimumAttendeePercentage": "100"
}

1 个答案:

答案 0 :(得分:0)

如果使用已注册的应用程序,则您具有应用程序许可权。不幸的是,此方法不支持此权限类型。