This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello Guys,
Our custome visual is now published in the Microsoft AppSource with 3 different plans as below.
Core, Pro and Enterprise.
When we call the Licensing API as below page guides, it returns the "ServicePlan" array with each array node having "State" and "spIdentifier" attributes.
https://learn.microsoft.com/en-us/power-bi/developer/visuals/licensing-api
But each request return a specific identifier, that we can not specifically identify whether the request sent by Core, Pro or Enterprise vesrsion,
So, Don't we have another attribute in the array nodes, like "Plan Name" or something similar?
Then we can specificaly validate the version and do the needful prompts to the user, based on the version/subscription he currently use.
Please advice on how to identify the service plan name, by the response got from this "Licensing API".
Thanks,
Lasantha
Solved! Go to Solution.
Hey @dakdgdl,
Yeah, the Licensing API only gives you spIdentifier and state - no friendly plan names. Pretty frustrating!
https://learn.microsoft.com/en-us/power-bi/developer/visuals/licensing-api
1. Map Your Plan IDs Go to Partner Center → Your Offer → Plan Overview. Copy those Service IDs and create a simple mapping:
const planNames = {
"abc123-core-id": "Core",
"def456-pro-id": "Pro",
"ghi789-enterprise-id": "Enterprise"
};
2. Simple Plan Detection Function
function getUserPlan(servicePlans) {
const activePlans = servicePlans.filter(p =>
p.state === "Active" || p.state === "Warning"
);
for (let plan of activePlans) {
if (planNames[plan.spIdentifier]) {
return planNames[plan.spIdentifier];
}
}
return "No License";
}
3. Use It in Your License Check
this.licenseManager.getAvailableServicePlans()
.then(result => {
if (result.isLicenseInfoAvailable && result.plans) {
const userPlan = getUserPlan(result.plans);
// Now you know if it's Core, Pro, or Enterprise!
this.enableFeaturesFor(userPlan);
}
});
Microsoft intentionally doesn't expose plan names for security. The spIdentifier is your unique key - you just need to maintain the mapping yourself.
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
Thanks...
As you saying each spIdentifier is a unique string based on the version/subscription.
So that it make sense..
Hey @dakdgdl,
Yeah, the Licensing API only gives you spIdentifier and state - no friendly plan names. Pretty frustrating!
https://learn.microsoft.com/en-us/power-bi/developer/visuals/licensing-api
1. Map Your Plan IDs Go to Partner Center → Your Offer → Plan Overview. Copy those Service IDs and create a simple mapping:
const planNames = {
"abc123-core-id": "Core",
"def456-pro-id": "Pro",
"ghi789-enterprise-id": "Enterprise"
};
2. Simple Plan Detection Function
function getUserPlan(servicePlans) {
const activePlans = servicePlans.filter(p =>
p.state === "Active" || p.state === "Warning"
);
for (let plan of activePlans) {
if (planNames[plan.spIdentifier]) {
return planNames[plan.spIdentifier];
}
}
return "No License";
}
3. Use It in Your License Check
this.licenseManager.getAvailableServicePlans()
.then(result => {
if (result.isLicenseInfoAvailable && result.plans) {
const userPlan = getUserPlan(result.plans);
// Now you know if it's Core, Pro, or Enterprise!
this.enableFeaturesFor(userPlan);
}
});
Microsoft intentionally doesn't expose plan names for security. The spIdentifier is your unique key - you just need to maintain the mapping yourself.
Fixed? ✓ Mark it • Share it • Help others!
Best Regards,
Jainesh Poojara | Power BI Developer
Thanks...
As you saying each spIdentifier is a unique string based on the version/subscription.
So that it make sense..
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.