You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% set dremio_dbs =elementary.get_dremio_databases() %}
111
+
112
+
-- Create dremio user
110
113
CREATE USER "{{ parameters["user"] }}";
111
114
115
+
-- General usage permissions
112
116
GRANT USAGE ON PROJECT TO USER "{{ parameters["user"] }}";
117
+
118
+
-- Read permissions on elementary schema
113
119
GRANTSELECTON ALL DATASETS IN FOLDER {% for part in (parameters["object_storage"] ~ "." ~ parameters["object_storage_path"]).split(".") %}"{{ part }}"{% if not loop.last %}.{% endif %}{% endfor %} TO USER "{{ parameters["user"] }}";
120
+
121
+
-- Metadata permissions on all catalogs and sources (no read access)
122
+
{% for db_name, db_type indremio_dbs.items() -%}
123
+
GRANT VIEW REFLECTION ON {{ db_type }} "{{ db_name }}" TO USER "{{ parameters["user"] }}";
0 commit comments