是否支持在Microsoft Graph API中分配用户许可证? [英] Support for Assigning User Licenses in Microsoft Graph API?

查看:70
本文介绍了是否支持在Microsoft Graph API中分配用户许可证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

何时为Microsoft Graph API添加O365中分配用户许可证的支持?当前在1.0版中,尝试分配许可证时出现以下错误,

When will support for assigning user licenses in O365 be added for the Microsoft Graph API? Currently in version 1.0, I get the following error when trying to assign a license,

{
  "error": {
    "code": "Request_BadRequest",
    "message": "Property 'assignedLicenses' is read-only and cannot be set.",
    "innerError": {
      "request-id": "0827887a-4e46-48d6-93c6-81825aeaac61",
      "date": "2017-06-16T18:35:29"
    }
  }
}

2.0版将支持此功能吗?如果是这样,是否有时间表?

Will this be supported in version 2.0? If so, is there a timeframe it will be added?

推荐答案

支持分配许可证,但不通过更新属性来进行.此属性的确是只读的.我们应该在此处改善错误消息,以指示如何设置-对此感到抱歉.

Assigning licenses is supported, but not through updating the property. This property is indeed read only. We should improve our error message here to indicate how this can be set - sorry about that.

您需要做的是使用assignLicense方法.信息在这里: https://developer.microsoft.com/zh-CN/graph/docs/api-reference/v1.0/api/user_assignlicense .如果使用此方法还有其他挑战,请告诉我.

What you need to do is use the assignLicense method. The info is here: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_assignlicense. Please let me know if you have any further challenges using this method.

希望这会有所帮助,

这篇关于是否支持在Microsoft Graph API中分配用户许可证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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