Description
When dataset is shared with a user nested in a role i.e. user < group < role, and the user calls get dataset API with sharedWithMe=true, the dataset is not returned in response. Please find the steps to reproduce:
- Add a user user1 with ranger role - USER.
- Add a group grp1, map grp1 with user user1.
- Create a role - role1, add the group grp1 to the role role1.
- Create a dataset - ds1 with any other user as admin i.e. user2.
- Create a dataset policy for the dataset - ds1, with all access to the role - role1.
- Call the get dataset API with query-param sharedWithMe=true - /gds/dataset?sharedWithMe=true.
Expected: the dataset ds1 will be returned in the response.
Actual: the dataset ds1 is not returned in the response