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 moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi Team,
I am trying to create a Microsoft Fabric Ontology (preview) programmatically using Python and the Fabric REST API.
The API call fails with the following error:
403 Forbidden
{
"requestId": "xxxx",
"errorCode": "FeatureNotAvailable",
"message": "The feature is not available"
}Or any guidance would be greatly appreciated.
Thanks!
Hi @poorvi_pj ,
Were you able to solve the problem?
If this helps solve your problem, I’d appreciate it if you could mark it as the accepted solution and give it a like 👍
Thanks
Hi @poorvi_pj
The 403 FeatureNotAvailable when creating an Ontology via Service Principal usually has two causes:
1. Tenant Settings not enabled
The Ontology API requires two settings active in the Admin Portal:
The item being visible in the UI doesn't guarantee these are enabled. Also make sure the Service Principal (or its security group) is included in the scope of each setting.
→ Required tenant settings for Ontology
2. The API does support Service Principals
The POST /v1/workspaces/{workspaceId}/ontologies endpoint explicitly supports SP/Managed Identity. What is mandatory: Item.ReadWrite.All scope with admin consent and Contributor role in the workspace (Viewer is enough for GET, but not for POST).
→ Create Ontology - REST API
Additional tip: confirm the workspace is on an F-SKU (Fabric capacity). On Trial or PPU, Ontology may appear visible in preview but fail on API creation.
If this helps solve your problem, I’d appreciate it if you could mark it as the accepted solution and give it a like 👍
Thanks
Check out the June 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.