Subhrat Chaudhary created RANGER-4669:
-----------------------------------------

             Summary: Nested user in role is not conisdered when getting 
datasets shared with user
                 Key: RANGER-4669
                 URL: https://issues.apache.org/jira/browse/RANGER-4669
             Project: Ranger
          Issue Type: Bug
          Components: admin
            Reporter: Subhrat Chaudhary
            Assignee: Subhrat Chaudhary


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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to