Implement LookML access_grant with required_access_grants on Explores and fields to govern metric visibility by user attribute

domain: docs.cloud.google.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In a LookML model file, define an access_grant block with a name, the user_attribute it reads, and the allowed_values that grant access
  2. Apply required_access_grants: [your_grant_name] to the Explore, view, join, or individual field that should be restricted
  3. In Looker Admin, create a matching user attribute with the same name used in the access_grant definition and assign appropriate values to users or groups
  4. Test by logging in as a user without the required attribute value and confirming the restricted Explore or field is not visible in the Looker UI
  5. For row-level security (beyond field-level), add an access_filter parameter to the Explore referencing a user attribute that dynamically appends a WHERE condition to all queries against that Explore

Known gotchas

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans