apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
61.53k stars 13.43k forks source link

A gamma does not see dataset (even if is public) #29544

Open xavier-GitHub76 opened 1 month ago

xavier-GitHub76 commented 1 month ago

Bug description

Hello, Unlike an Alpha user, a gamma does not see datasets without permission.

If a dataset is public, a gamma should see it by default.

Currently, it is necessary to add "access on" permission while the dataset is public

How to reproduce the bug

Create a public dataset Login with a Gamma user List the dataset --> Public dataset is not displayed

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

dosubot[bot] commented 1 month ago

Gamma users cannot see public datasets by default because they only have access to data sources they have been explicitly granted access to through another complementary role. Unlike Alpha users, who have access to all data sources, Gamma users are designed to have limited access, primarily for consuming data from specific sources they have permissions for.

To resolve this, you need to explicitly grant Gamma users access to the public datasets. This can be done by creating a new role that includes the necessary permissions for the public datasets and assigning this role to the Gamma users.

Here’s how to provide Gamma users access to specific datasets:

  1. Ensure the users have only the Gamma role assigned to them.

  2. Create a new role:

    • Navigate to Menu -> Security -> List Roles.
    • Click the + sign to create a new role.
    • Give the new role a name, attribute it to users, and select the tables in the Permissions dropdown.
    • Use the typeahead to search for and select the public datasets you want to associate with this role.
  3. Assign this new role to the Gamma users.

By following these steps, Gamma users will be able to see and access the public datasets you have granted them permissions for [1][2][3][4].

To continue talking to Dosu, mention @dosu.