- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe to Topic
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
How to identify previously purchased subscriptions before reseller relationship was established.
Hi team, I am trying to identify subscriptions (Like MS 365 Business Basic) and their auto-renew status that were purchased before establishing the reseller relationship with a CSP.
When I try to hit the /customer/{tenantId}/subscriptions API to fetch this information they do not show up instead I get an empty response - API docs link - https://learn.microsoft.com/en-us/partner-center/develop/get-all-of-a-customer-s-subscriptions
But when I hit the /customer/{tenantId}/subscribedskus API I am able to see the subscription.
Api Docs link - https://learn.microsoft.com/en-us/partner-center/develop/get-a-list-of-available-licenses
Unfortunately this API does not contain information regarding subscription status (when it expires, autoRenewStatus, etc) which is visible on the admin dashboard. Link - https://admin.microsoft.com/AdminPortal/Home?#/homepage
For some other customers which I had transferred earlier I am able to see the response on the /customers/{tenantId}/subscriptions endpoint. API docs link - https://learn.microsoft.com/en-us/partner-center/develop/get-all-of-a-customer-s-subscriptions
These have the autoRenew status and subscription expiry related information. I am not sure what is going on here @JanoschUlmer can you maybe help here.
- Labels:
-
CSP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
@RipplingProd Yes, unfortunately there is currently no solution until there are updates to GraphAPI to expose this info. Even using MSOnline PowerShell module against customer tenants also does not work anymore with GDAP, so there are multiple blockers here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The API https://learn.microsoft.com/en-us/partner-center/develop/get-all-of-a-customer-s-subscriptions does only fetch subscription sold by the Partner calling the API.
The other API https://learn.microsoft.com/en-us/partner-center/develop/get-a-list-of-available-licenses does list all licenses available for assignment in a customer tenant, but it does only list the licenses, not the subscription obtained.
I don't think this can be done using Partner Center API, but you would need to call Graph in the customer context. For https://learn.microsoft.com/en-us/partner-center/develop/get-a-list-of-available-licenses
you would need DAP/GDAP permissions to get any information from the customer tenant, and you can use the same permissions to get info about subscription in the customer tenant. Using GraphAPI.
The real problem is that GraphAPI currently does not expose the required information - Get subscribedSku - Microsoft Graph beta | Microsoft Learn does not expose expiration dates and auto-renew settings, at least team has confirmed they are looking into this: SubscribedSku - license expiry data/ next life cycle date is not available in this api response. · Issue #17500 · microsoftgraph/microsoft-graph-docs · GitHub. And kudo's for this info should go to @sansbacher who just posted this on a related thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
@JanoschUlmerthank you for the detailed reply but it seems the PowerShell API you have linked still does not provide information regarding the "auto-renew" status.
Is there anyway of fetching this particular information?
I updated the autoRenew to be false for this particular account I created but I don't see any of the fields changing in PowerShell.
