Forum Discussion

Premal Gandhi's avatar
Premal Gandhi
Former Employee
Feb 03, 2023

How does SaaS app know the user is accessing the app in context of existing subscription ?

The scenario is as follows:

As a bank I subscribe to SaaS app offering metered billing.

A user is now redirected to the SaaS App via the bank. 

How does SaaS app know the user is accessing it in the context of the bank’s subscription. 

if there is sample SaaS app code for this scenario that be great help.

 

to be very specific, how does the SaaS app obtain the subscriptionId to populate the resourceId parameter in this metered billing single usage event API call to Marketplace ?

https://learn.microsoft.com/en-us/azure/marketplace/marketplace-metering-service-apis#metered-billing-single-usage-event

 

i have already read this - https://techcommunity.microsoft.com/t5/fasttrack-for-azure/azure-marketplace-metered-billing-picking-the-correct-id-when/ba-p/3542373 

 

The solution there assumes that buyer and user are the same. But in the case I describe above buyer and user are different. How will the user get the subscription Id obtained by buyer ?

7 Replies

  • Thanks for your contribution - did you have any additional questions on this topic?
  • kgola-cflt's avatar
    kgola-cflt
    Copper Contributor

    Premal Gandhi have you checked the SaaS Fulfillment APIs? They give the ISVs the GUID of the SaaS - https://learn.microsoft.com/en-us/azure/marketplace/partner-center-portal/pc-saas-fulfillment-life-cycle

    • kgola-cflt's avatar
      kgola-cflt
      Copper Contributor
      I don't think the user can ever get access to SaaS GUID. It is only for the ISV (I maybe wrong tho)
      • Premal Gandhi's avatar
        Premal Gandhi
        Former Employee
        If the user cannot provide subscription ID how can ISV provide it the service bought. e.g., without the user showing it has the required license how can it use the ISV features that need the license

Resources