- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2025 09:28 PM
Hi, I've created a service principal and setup OAuth - I can successfully call REST APIs to see workspace details. But, when I try to list the genie spaces in a workspace, I get {} as the result. In the UI, I can see two genie spaces I've created. Any hints on what to do now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2025 12:31 PM
Greetings @hch_fiq , thanks for sharing the context—this behavior is almost always a permissions/entitlements mismatch between the service principal and the Genie space ACLs.
What’s happening
- The List Genie spaces endpoint (
GET /api/2.0/genie/spaces) only returns spaces the caller has access to; if the caller has no access, you’ll see an empty result (often rendered as{}by some clients). -
To even see a space in the list, the caller needs at least CAN VIEW/CAN RUN on that space per Genie space ACLs.
-
For using the Conversation APIs, the caller also needs the Databricks SQL entitlement and warehouse access; if these are missing, subsequent calls will fail even after you can list spaces.
Fix it step-by-step
- In the Genie UI, open each space and use Share → add your service principal → grant CAN VIEW (or CAN EDIT). This is what allows the SP to see the space in listings.
-
Ensure the service principal has the Databricks SQL entitlement and at least CAN USE on the target SQL warehouse for that space (if you plan to call conversation/query endpoints).
-
Verify you are calling the workspace-scoped host (not the account-level host) and the correct endpoint:
bash curl -s -H "Authorization: Bearer $TOKEN" \ https://<workspace-host>/api/2.0/genie/spaces -
Optionally, check audit logs for the
aibiGenie.listSpacesevent to confirm requests are reaching the workspace and how they’re being authorized.
Expected response shape
spaces array with each space’s id, title, and description (and other fields depending on version).Why your UI view differs from the API
{} when listing with SP).- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2025 09:19 PM
Thanks, this works. I guess I didn't realize that the ACLs were in the Share button view...didn't find that info easily in the documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2025 12:58 PM
Hi @hch_fiq ,
You need setup proper permissions for your service account to see genie space. Look at below Genie space ACL table from documentation. When there's no ACL set you won't see anynting. So, your Service Principal needs at least CAN VIEW/CAN RUN permission.