I have user attribute department defined in my looker instance.
I have added this code to a model:
access_grant: can_view_customersuccess_data {
user_attribute: department
allowed_values: ["CS"]
}
Then I have added this access_grant to required_access_grants in an explore of this model.
But it is not working.
Users are still able to see the explore even though their attribute is set to something else.
Pls help!!!!
Few things to be considered while using access_grants with user_attributes.
Hi,
Thanks for your inputs.
I was sudoing as another user and testing the changes without deploying the code.
Read the Looker doc on sudoing as another user and understood where the problem was.
Access grants working now. 🙂