简体   繁体   English

通过Graph API购买O365 SKU许可证

[英]Buy O365 SKU license via Graph API

I've got working C# code that assigns O365 users with a license for one of our O365 SKUs. 我有工作的C#代码,可为O365用户分配一个我们的O365 SKU的许可证。 This code is executed via a Slack Bot. 该代码通过Slack Bot执行。 Now we ran into an issue that we didn't have any available licenses left. 现在我们遇到了一个问题,我们没有可用的许可证。

Previously, when going through this process via the O365 portal, I was able to just say "get a license, I agree" and we had +1 licenses. 以前,通过O365门户进行此过程时,我只能说“我同意”,我们就拥有+1个许可证。 Searching through the Graph API I wasn't able to find anything similar. 通过Graph API搜索时,我找不到类似的东西。

Is there really no way to use the API to buy another license for a SKU? 真的没有办法使用API​​购买SKU的另一个许可证吗?

Thanks, David 谢谢大卫

The Microsoft Graph cannot be used to purchase additional subscriptions or service plans for your tenant. Microsoft Graph不能用于为您的租户购买其他订阅或服务计划。 It can only be used to assign existing licenses which have been provisioned in your tenant. 它只能用于分配租户中已提供的现有许可证。

Also, there is no public API which supports these sorts of calls. 另外,没有公共API支持这些调用。 Unfortunately, if you want to add a subscription for a service in your tenant, you must use our public UX. 不幸的是,如果您想在租户中添加服务订阅,则必须使用我们的公共UX。 In this situation, for adding Office 365 subscriptions, you should use the Office Portal . 在这种情况下,要添加Office 365订阅,您应该使用Office Portal

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM