Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4669

Nested user in role is not conisdered when getting datasets shared with user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • admin
    • None

    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

      Attachments

        Activity

          People

            suchnit Subhrat Chaudhary
            suchnit Subhrat Chaudhary
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: