question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to grant per datasource/schema access with 0.34.0rc1

See original GitHub issue

Original issue. https://github.com/apache/incubator-superset/issues/7554

You can’t use SQL Lab if you don’t grant database permission to user. It makes superset unusable with per datasource access model. You can still see dashboards, but you can’t manually query any data.

If you add database permission, user can access all tables in database which is not acceptable.

Expected results

See all available database/schema/table in SQL Lab based on granted datasource access.

Actual results

SQL Lab dropdowns are empty.

How to reproduce the bug

  • create user
  • grant it only datasource permission without database access.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
issue-label-bot[bot]commented, Aug 21, 2019

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.89. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
nabhosalcommented, Nov 26, 2019

Any updates on this issue. Instead of the database, we gave permission on the schema. Still, all tables under a schema are accessible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to grant per datasource/schema access with 0.34. ...
You can't use SQL Lab if you don't grant database permission to user. It makes superset unusable with per datasource access model. You...
Read more >
how to give individual schema access to users in apache- ...
As per the Superset documentation, you can not create access level on the schema but you can create access on data source level....
Read more >
GRANT Schema Permissions (Transact-SQL) - SQL Server
Specifies the principal to which the permission is being granted. One of the following: database user; database role; application role; database ...
Read more >
Unable to connect to Oracle 11g User Schema as Data ...
I have created new schemas in Oracle DB as per the default scripts "DEN70EDUD1001LAB01-Oracle" & "DEN70EDUD1004LAB04-Oracle" provided.
Read more >
GRANT - Amazon Redshift
Defines access privileges for a user or user group. Use this command to give specific privileges on a table, database, or schema.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found