Tenant does not have a SPO license when using Microsoft Graph API with Application Permissions

若如初见. 提交于 2021-01-29 15:01:54

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/59159530/tenant-does-not-have-a-spo-license-when-using-microsoft-graph-api-with-applicati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!