How access works
The two layers that decide which apps you can open and which data you can read, who grants each, and when a change takes effect.
Two separate things decide what you can do in Databaas: which apps you can open, and which data you can read or change. They are granted in different places, and neither implies the other: an app role gives no data, and a data role opens no app. You sign in once; then one check runs when you open an app, and another on every query you make.
Two kinds of access
| App permissions | Data access | |
|---|---|---|
| Controls | Whether Notebooks, Pipelines, Dashboards, the SQL Editor, the Map Viewer and the admin screens open at all. | Which warehouses, namespaces and tables you can read or change. |
| Granted | To a person directly, or through an app role they are in. | To a person, a service account or a data role, on a warehouse, namespace or table. |
| Granted in | Users & access in the portal. | The Permissions tab of a warehouse, namespace or table in the Data Catalog. Data role membership is also managed in Users & access. |
| Granularity | Seven app permissions, each platform-wide. | Per warehouse, namespace or table. |
| Who changes it | Anyone with Administer platform. | A Data admin, or anyone who holds Manage grants or Ownership on that object. |
Opening an app is not the same as reading data inside it. With Use dashboards you can open Dashboards and see every chart listed, but a chart built on data you have no grant for returns an error instead of rows. With Use SQL editor you can open the SQL Editor, but each statement runs only as far as your data grants allow.
You can see your own app permissions on Home, in the Your access box. It lists all seven and ticks the ones you hold, whether you hold them directly, through an app role, or through a higher permission.
How a request is decided
You sign in once through single sign-on. Each app checks whether you may open it, and every query is then authorized as you, against your own data grants. Pipelines read and write data as the service account their connection uses, with that service account’s grants, not yours:
Roles and defaults
There are two kinds of role, one per layer:
- An app role bundles app permissions. Everyone in it can open the apps it grants. App roles hold people and service accounts, but not other app roles.
- A data role is granted data in the Data Catalog. Everyone in it can read or change what it is granted. Data roles hold people, service accounts and other data roles, so you can nest them.
Every new person is added to the Default app role and the Default data role. A platform administrator can change what the Default app role grants, and a Data admin can change what the Default data role is granted, but neither role can be deleted. Service accounts get neither default: a new service account starts with no app permissions and no data access.
When a change takes effect
- App permissions are checked on every request, so nobody needs to sign out and back in.
- Data access is checked on every query, in every app. In the Data Catalog, use Check again on the “No rights yet” screen rather than reloading the page.
- Notebooks checks at sign-in. A new grant of Use notebooks applies the next time you sign in to Notebooks. Removing Use notebooks stops new sign-ins. Someone already signed in keeps access, including starting their server, until they sign out or their session expires, which can take up to 14 days.
Who grants what
| Ask | For |
|---|---|
| A platform administrator (Administer platform) | App permissions, app roles and app role membership. |
| A Data admin | Data roles, data role membership, and grants on any warehouse, namespace or table. |
| Anyone with Manage grants or Ownership on a warehouse, namespace or table | Grants on that object, for a person, a service account or a data role. |
Administer platform does not include Data admin: a platform administrator needs it switched on separately, by an existing Data admin, in Users & access.