Your own dashboards, without the usual problems: what a semantic layer fixes Open-source semantic layer eMondrian routes dashboard queries through a REST API instead of direct database access, centralizing measure definitions, row-level access rules and database credentials in one model so dashboards, Excel PivotTables and Power BI reports on the same cube return identical numbers. The project's agentAccess=synthetic-only setting lets AI agents build and test queries against a synthetic twin without seeing real rows, and agents read the model over MCP rather than writing SQL against production tables. Every query through the gateway is logged with the user's name, groups and sign-in method, while dashboards keep their existing code and identity provider and pass the signed-in user via X-Forwarded-User and X-Forwarded-Groups headers. Your own dashboards, without the usual problems: what a semantic layer fixes Many teams build their own dashboards: a web app, a portal page, a React chart, more and more often written by an AI agent. It starts fast: a backend, a few SQL queries, a chart library. A year later the same problems show up in almost every team. eMondrian, an open-source semantic layer, removes th em without taking the dashboards away from you: they keep their code and their look, and get their numbers from a REST API instead of the database. Browser ──► your dashboard app ──SQL──► database KPI formulas, access filters, database password Every dashboard carries three things of its own: the formulas, the access rules and the database credentials. That is where the problems come from. Problem in your dashboards With eMondrian Numbers differ. "Revenue" in the dashboard, in Excel and in Power BI are three different SQL queries, and finance and sales argue about whose number is right. Measures are defined once in the model. The dashboard, an Excel PivotTable and a Power BI report on the same cube show the same number. Access rules are copied into every query. Each new chart needs the right WHERE region = …; one forgotten filter shows a user someone else's data. Roles and row-level security live in the model and are granted to groups. Every query runs with the roles of the person who is looking. Database credentials in every app. Each dashboard backend holds a database user, often one with access to everything. Only eMondrian connects to the database. The dashboards hold either nothing or the user's own token. A schema change breaks dashboards. A renamed column or a new table means fixing SQL in every dashboard. The dashboards query cubes, measures and hierarchies. The mapping to tables is in the model, and a change there is made once. No record of who saw what. Every call through the gateway is in its access log with the user's name, groups and sign-in method. AI agents write SQL on production data. An agent guesses what a metric means from raw tables, and everything it reads goes to the model provider. The agent reads the model over MCP and writes queries against defined measures. With agentAccess=synthetic-only it builds and tests on a synthetic twin and never sees a real row. Browser ──► your dashboard app ──REST, JSON──► eMondrian ──► database model, roles, credentials A dashboard sends an MDX or DAX query and gets rows back as JSON: curl https://bi.example.com/api/v1/query \ -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \ -d '{"catalog": "Sales", "query": "SELECT { Measures . Revenue } ON 0, Region .Members ON 1 FROM Sales "}' { "columns": { "name": "Region", "kind": "member" }, { "name": "Revenue", "kind": "measure" } , "rows": { "Region": "North", "Revenue": 1840200 }, { "Region": "South", "Revenue": 1210950 } , "rowCount": 2, "truncated": false } GET /api/v1/catalogs and GET /api/v1/catalogs/{catalog}/cubes/{cube} list what a dashboard may query. Your chart code stays as it is; only the data source changes. See REST API. The query is the same either way. What differs is how eMondrian learns who is asking, and that decides which rows come back. Your dashboards already sign users in, with your own identity provider or your company's single sign-on. That stays. The dashboard backend tells eMondrian who the signed-in user is. This is how eMondrian's own Dashboard works. Browser ──sign-in──► your identity provider as today ▼ your dashboard backend │ X-Forwarded-User: the user │ X-Forwarded-Groups: the user's groups │ X-Forwarded-Secret: the installation's secret ▼ eMondrian server /api/v1/query ── the user's roles ──► database The backend calls the eMondrian server inside the installation, on the same Docker network, and names the user and the user's groups full paths separated by commas : curl http://eMondrian:8080/emondrian/api/v1/query \ -H "X-Forwarded-User: anna" -H "X-Forwarded-Groups: /sales,/sales/north" \ -H "X-Forwarded-Secret: $EMONDRIAN SECRET" -H 'Content-Type: application/json' \ -d '{"catalog": "Sales", "query": "SELECT { Measures . Revenue } ON 0, Region .Members ON 1 FROM Sales "}' eMondrian accepts a request that names a user only with the right secret, and applies schema roles, row-level security and server rights exactly as for a user who comes through the gateway. Grant the roles in the model to the group paths your backend sends. Use it when your dashboards already have users and groups: one sign-in, no accounts to create in eMondrian, no tokens in the dashboards. Set it up safely: The secret is the installation's own, shared by the gateway, the Dashboard and the server, and lets its holder act as any user. Trust the dashboard service as much as the gateway, keep the secret in its environment only, and when you change it, change it in every service at once. Run the dashboard service on the installation's Docker network and publish only the gateway. Give the catalog's default role no access: a request without these headers runs with it. Log in your dashboards who opened what. Users sign in with eMondrian: Keycloak, linked to Active Directory, LDAP or a provider over OIDC or SAML such as Microsoft Entra ID, Google or Okta. The same accounts then work in the dashboards, Excel, Power BI and AI agents. The dashboard sends a personal token, Authorization: Bearer emk …, and the gateway checks it and logs the call. your dashboards ──HTTPS, Authorization: Bearer emk …──► eMondrian gateway ──► eMondrian server ──► database One consumer, one user. Every eMondrian user has at most one personal token, and issuing a new one revokes the old one. Give each consumer its own user, for example the portal's backend one user and a client's links another, in the group whose role it should have. Revoking one then stops nothing else, and the access log shows by name which of them called. An administrator issues the token at /account/tokens?user=