Microsoft Graph API Get SKu Subscription

ConnectWise 0 Reputation points
2023-09-12T03:41:59.46+00:00

We are currently using the Microsoft Graph API to retrieve tenant SKU subscription license counts for our organization. We have encountered a challenge in distinguishing between paid and trial licenses from the data we receive. We are seeking your assistance to address this issue.

API Endpoint: https://learn.microsoft.com/en-us/graph/api/subscribedsku-list?view=graph-rest-1.0&tabs=http

We kindly request guidance on how to retrieve a list of SKUs that correspond to free or trial licenses separately from the paid licenses using the Microsoft Graph API. Any insights, examples, or best practices you can provide would be greatly appreciated.

Your expertise in this matter would greatly assist us in optimizing our usage of the Microsoft Graph API. Thank you in advance for your support.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,869 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Diah.Karim-MSFT 330 Reputation points Microsoft Vendor
    2024-01-02T02:30:36.8733333+00:00

    Hi

    To get more details about subscription, you may explore below endpoints (List & Get). There is a flag (isTrial) to see whether the subscription is trial or paid

    https://learn.microsoft.com/en-us/graph/api/directory-list-subscriptions?view=graph-rest-beta&tabs=http

    User's image

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.