租户没有SPO许可证 [英] Tenant does not have a SPO license

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

问题描述

尝试使用Microsoft Graph编写脚本将Excel文件上传到OneDrive然后读取Excel文件时出现错误.

I have an error while trying to use Microsoft Graph to write a script to upload an Excel file to OneDrive then read the Excel file.

我遵循了

I followed Microsoft documentation to obtain the access token without user. I successfully got an access token but I got an error while using the access token to call the OneDrive API.

以下是响应:

{
    "error": {
        "code": "BadRequest",
        "message": "Tenant does not have a SPO license.",
        "innerError": {
            "request-id": "5ec31d17-3aea-469f-9078-de3608f11d0d",
            "date": "2017-10-10T04:34:05"
        }
    }
}

我不明白为什么调用图谱API时需要拥有SPO许可证以及如何获取它.由于出现此错误消息,因此我正尝试购买SPO许可证.

I don't understand why I need to have SPO license while calling graph API and how to get it. Because of this error message so I'm trying to buy a SPO license.

根据本文档,我认为我应该在许可证页面中看到许多产品,但是在使用Azure Portal登录并转到许可证"页面时,我仅看到2种产品:Azure AD Premium和Enterprise Mobility Suite:

According to this document, I think I should see many products in the license pages but while logging in with Azure Portal and go to the License page, I see only 2 products: Azure AD Premium and Enterprise Mobility Suite:

推荐答案

在此处回答了几件事.

背景:Microsoft Graph是许多开发人员网关或API,可用于许多Microsoft云服务,例如Office 365,Azure Active Directory,EMS(企业移动套件),个人Outlook ,个人OneDrive等.该API是免费的,但是要访问其背后的数据,您实际上需要拥有这些服务-在某些情况下,它们可能是免费的,而在其他情况下,您可能需要付费.

Background: Microsoft Graph is the developer gateway or API to many Microsoft cloud services, like Office 365, Azure Active Directory, EMS (Enterprise Mobility Suite), personal Outlook, personal OneDrive and more. Use of the API is free, but to access the data behind it, you need to actually have those services - in some cases they may be free and in other cases you may need to pay for them.

关于将Office 365添加到现有租户.我相信您已经使用Microsoft帐户注册了Azure.这意味着您已经有一个Azure Active Directory租户.您仍然可以为该租户购买/获取Office 365.您需要做的就是在租户中创建一个新的Azure AD用户(而不是Microsoft帐户),并将其设置为公司管理员.然后,您应该能够注册Office 365-如果它询问您是否已有租户或帐户,请使用刚刚创建的AAD帐户登录.瞧,您应该有一个Azure AD租户,该用户既要订阅Azure,又要订阅Office 365.

As for adding Office 365 to your existing tenant. I believe you've signed up for Azure using a Microsoft Account. This means that you already have an Azure Active Directory tenant. You can still purchase/acquire Office 365 for that tenant. All you need to do is create a new Azure AD user (not a Microsoft Account) in your tenant, and make them a company admin. Then you should be able to sign-up for Office 365 - if it asks if you already have a tenant or account, sign in with the AAD account you just created. And voila, you should have an Azure AD tenant with a subscription to Azure AND now a subscription to Office 365.

希望这会有所帮助,

这篇关于租户没有SPO许可证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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