首页 > 解决方案 > 在 Microsoft Graph 中获取许可证 SKU 的显示名称

问题描述

我正在尝试使用 Microsoft Graph 来捕获我们拥有许可证的产品。虽然我可以获得 skupartname,但该名称并不完全适合显示。

我在几乎所有提供具有 id 的对象的 API 调用中都遇到过DisplayName作为数据点。

我想知道是否有 skus 的DisplayName,以及我可以去哪里通过图表获取它们。

作为参考,我拨打的电话是在https://graph.microsoft.com/v1.0/subscribedSkus文档https://docs.microsoft.com/en-us/graph/api/subscribedsku-list?view=graph-rest-1.0之后的端点上

以下是返回的内容(在过滤掉我不需要的东西之后),如前所述,虽然我有一个可以通过skuPartNumber使用的唯一标识符,但这并不完全是 PRESENTABLE。您可能会注意到,对于某些 sku,很难根据输出后发布的许可证页面图像中的名称来确定它所指的内容

[
    {
        "capabilityStatus":  "Enabled",
        "consumedUnits":  0,
        "id":  "aca06701-ea7e-42b5-81e7-6ecaee2811ad_2b9c8e7c-319c-43a2-a2a0-48c5c6161de7",
        "skuId":  "2b9c8e7c-319c-43a2-a2a0-48c5c6161de7",
        "skuPartNumber":  "AAD_BASIC"
    },
    {
        "capabilityStatus":  "Enabled",
        "consumedUnits":  0,
        "id":  "aca06701-ea7e-42b5-81e7-6ecaee2811ad_df845ce7-05f9-4894-b5f2-11bbfbcfd2b6",
        "skuId":  "df845ce7-05f9-4894-b5f2-11bbfbcfd2b6",
        "skuPartNumber":  "ADALLOM_STANDALONE"
    },
    {
        "capabilityStatus":  "Enabled",
        "consumedUnits":  96,
        "id":  "aca06701-ea7e-42b5-81e7-6ecaee2811ad_0c266dff-15dd-4b49-8397-2bb16070ed52",
        "skuId":  "0c266dff-15dd-4b49-8397-2bb16070ed52",
        "skuPartNumber":  "MCOMEETADV"
    }
]

在此处输入图像描述

编辑: 我知道我可以在以下链接中获得 SKU 的“友好名称” https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/licensing-service-plan -参考

问题是它只包含 70 个最常见的 SKU(在上一个财务季度),而不是全部。仅我的组织就有 5 个 SKU 没有出现在该页面上,而我们作为 MSP 的一些客户也有一些。在这种情况下,链接确实不能解决问题,因为它不可靠,更新速度也不够快以适应新的 SKU

标签: azure-active-directorymicrosoft-graph-apidisplayname-attribute

解决方案


You can see a match list from Product names and service plan identifiers for licensing.

Please note that:

the table lists the most commonly used Microsoft online service products and provides their various ID values. These tables are for reference purposes and are accurate only as of the date when this article was last updated. Microsoft does not plan to update them for newly added services periodically.

Here is an extra list which may be helpful.


推荐阅读