首页 > 解决方案 > Microsoftgraph 要删除许可证的哪些 ID?

问题描述

我想使用 microsoft graph API 从用户那里删除许可证。我目前正在使用图形资源管理器对此进行试验。

我在这里没有找到太多关于 microsoftgraph 的信息。我发现 microsoft 文档和示例在这一点上不清楚。

这是我必须处理的数据。图资源管理器 snip_one我尝试过选项 A)

当我发布到 assignLicense 端点时,我收到此错误消息,并且我通过 google/SO 找到的关于此的信息很少。 图资源管理器 snip_two具体来说,我发现很少

“无法将原始值转换为预期类型 'Edm.Guid'”

{
    "error": {
        "code": "Request_BadRequest",
        "message": "Cannot convert a primitive value to the expected type 'Edm.Guid'. See the inner exception for more details.",
        "innerError": {
            "request-id": "7e63fcf2-8fce-4a5c-9f40-3348fba1fb13",
            "date": "2019-12-05T01:37:14"
        }
    } }

标签: microsoft-graph-api

解决方案


这是这里的 GUID:https ://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/licensing-service-plan-reference

请注意,有一个指向 CSV 文件格式的最新版本的链接。


推荐阅读