Hi Datahub team! I'm trying to see if there is a w...
# troubleshoot
b
Hi Datahub team! I'm trying to see if there is a way to use policies to grant access to certain entities with certain values for just a specific user group (and prevent access for others). For example, I want to be able to limit
urn:li:glossaryTerm:6ac81097-494c-4e56-ac95-54543455545
to just users within the
test-group
, While this does not appear to be possible in the UI, I was able to do the following through a graphql mutation. From this I would expect anyone not in the specified group (any "no role" users) would NOT be able to drill down and edit these entities. Unfortunately they can. I have tried this exact approach with other fields as well (tags, origin, etc) with no success. Any ideas? Note: when I use Chrome's Developer Tools>inspect policy>Network tab, I can see the glossaryterm filter (from below mutation) in the policy. So it does appear to be somehow attached...just not working to filter data.
Copy code
mutation updatePolicy
{
  updatePolicy(
    urn: "urn:li:dataHubPolicy:69efb392-7f49-4bfd-be9d-48845854"
    input:{
      type: METADATA
      name: "My-Policy-Name"
      state: ACTIVE
      description: "restricts access to specific glossary term for users not in the data-team-testing group"
      resources:{
        # I also tried allResources: true and adding a second criteria field for ResourceType
        allResources: false
        filter:{
          criteria:[
          {
            field:"glossaryTerm"
            values: ["urn:li:glossaryTerm:6ac81097-494c-4e56-ac95-54543455545"]
            condition: EQUALS
            }
          ]
        }
      }
      privileges: ["VIEW_ENTITY_PAGE","EDIT_ENTITY"]
      actors:{
        groups: "urn:li:corpGroup:test-group"
        resourceOwners: false
        allUsers: false
        allGroups: false
      }
    }
  )
}
📖 1
🔍 1
✅ 1
l
Hey there 👋 I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: ✅ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? ✅ button ✅ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? ✅ button Did you find a solution to your issue? ❌ Sorry you weren't able to find a solution. I'm sending you some tips on info you can provide to help the community troubleshoot. Whenever you feel your issue is solved, please react ✅ to your original message to let us know!
b
Datahub v0.10.1 Kubernetes deployment There aren't any logs, it just doesn't work
From the chrome developer console when I edit my policy. It appears to have worked, but unfortunately does not seem to be using the 2nd criteria to filter
b
Access is governed by the sum of all policies - as long as you have any policy that grants 'view entity' access to all glossary terms to all users, this additional policy would have no effect.
b
That's too bad
a
This may be a good feature request for future work! https://feature-requests.datahubproject.io
b
https://feature-requests.datahubproject.io/p/policies-with-exclusion-clauses , probably have other similar feature requests as well, actually