使用具有应用程序权限的Microsoft Graph API时,租户没有SPO许可证 [英] Tenant does not have a SPO license when using Microsoft Graph API with Application Permissions

查看:83
本文介绍了使用具有应用程序权限的Microsoft Graph API时,租户没有SPO许可证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们尝试访问Microsoft Graph v1.0 API中的Sharepoint端点时,出现"Tenant没有SPO许可证"消息,并显示400错误.

我们已经注册了Azure AD应用程序,并为相关终结点分配了应用程序权限(相对于Delegated),因为我们需要在服务器之间(即,在经过身份验证的用户的上下文之外)访问终结点服务器.

承租人已连接到Office 365商业订阅,我们可以将其分配给用户,但是在这种情况下,承租人是目录本身,因此我们看不到如何为其分配订阅.

似乎与此相关的信息很少,并且大多数信息都适用于委派权限的情况.

任何帮助将不胜感激.

解决方案

如果您购买了O365 Business订阅,则可能仍需要为特定的AAD用户/O365用户分配SPO(SharePoint Online)许可证.

使用您的管理员帐户登录

点击编辑"后,您可以选择SharePoint许可证以将其分配给用户.

We're getting a 400 error with the message "Tenant does not have a SPO license" when we try to access the Sharepoint-endpoints in the Microsoft Graph v1.0 API.

We've registered our Azure AD app and assigned Application Permissions (as opposed to Delegated) for the relevant endpoints, as we need to access the endpoints server to server (ie. outside the context of an authenticated user).

The tenant is connected to an Office 365 Business subscription, that we can assign to users, but the tenant in this case is the directory itself and we don't see how we can assign a subscription to that.

It seems there is precious little information available regarding this, and most of it applies to the delegated permissions scenario.

Any help would be greatly appreciated.

解决方案

If you have purchased an O365 Business subscription, you may still need to be assign SPO (SharePoint Online) license for specific AAD user/ O365 user.

Use your admin account to log into O365 admin center and select a user and assign SPO license.

After clicking on "Edit", you can choose a SharePoint license to assign it to the user.

这篇关于使用具有应用程序权限的Microsoft Graph API时,租户没有SPO许可证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆