Hero Banner

Reseller Discussions

The Cloud Solution Provider program puts the partner in the center of the customer relationship – learn more

Reply
RipplingProd
Level 2 Contributor

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

RipplingProd_0-1669150761553.png

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

RipplingProd_1-1669150839500.png

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

RipplingProd_2-1669150921513.png


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

RipplingProd_3-1669151007091.png

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.

3 REPLIES 3
JanoschUlmer
Microsoft

@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.

Kind regards, Janosch
Receive consultations via Technical Presales and Deployment Services team
JanoschUlmer
Microsoft

@RipplingProd .

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.

Kind regards, Janosch
Receive consultations via Technical Presales and Deployment Services team
RipplingProd
Level 2 Contributor

@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.

RipplingProd_0-1669237423183.png

Is there anyway of fetching this particular information?

RipplingProd_1-1669237524146.png

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.