首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Office 365 Starter Project -确保为应用程序配置了正确的服务权限

Office 365 Starter Project -确保为应用程序配置了正确的服务权限
EN

Stack Overflow用户
提问于 2015-07-29 01:05:42
回答 2查看 212关注 0票数 0

我正在使用以下项目:https://github.com/OfficeDev/O365-ASPNETMVC-Start

我按照文档中的要求设置了配置,但登录后收到错误消息。

代码语言:javascript
复制
Cause   Action
AdalException   This exception is thrown when either you have a stale O365 access token that can cause authentication errors, or you attempted to access a resource that you don't have permissions to access.

Make sure the app is configured with the correct service permissions in the Services Manager menu. If any of these permissions are not configured, or configured incorrectly, some parts of the app may throw an error. For example  Right click the project, select Connected Service..., and ensure the following permissions are set for this app:

(Calendar) – Have full access to users’ calendar and Read users' calendar
(Contacts) – Have full access to users’ contacts and Read users' contacts
(Mail) - Send mail as a user, Read and write access to users' mail, and Read users' mail
(Users and Groups) – Enable sign-on and read users’ profiles.

权限设置正确:

我该如何解决这个问题?

EN

回答 2

Stack Overflow用户

发布于 2015-07-29 01:18:14

您缺少Mail API下的Send权限。

票数 0
EN

Stack Overflow用户

发布于 2015-07-29 03:29:34

我修复了这个问题...我在没有分配许可证的情况下使用开发人员帐户登录。您必须创建一个新用户,并确保将Microsoft Office 365 Developer设置为已分配的许可证。

如果不是,则会出现以下错误:

代码语言:javascript
复制
When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31682848

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档