internalsGet Pro

Module 17 · Lesson 2 of 10Pro

Access control: roles, rows and columns

Level
Intermediate
Topic
Governance, privacy and security
Reading time
17 min

When you finish this page you can

  1. Build a warehouse role hierarchy from access roles and functional roles, so each person gets only what their job needs.
  2. Restrict which rows a person sees with a row access policy and a mapping table.
  3. Hide a sensitive column from most readers with a masking policy, and explain why the policy checks IS_ROLE_IN_SESSION rather than CURRENT_ROLE.
  4. Lock down the lakehouse’s files in S3 so nobody can read around the warehouse’s rules.
  1. Cloud basics: accounts, access and networks14 min
  2. Data governance: ownership and accountability13 min

212 people can read every phone number

On Monday 16 October 2028, Meera lists who can read the column phone in ANALYTICS.DIM_CUSTOMER. The answer is 212 of Kartly’s about 300 warehouse users. Since Snapshots, DIM_CUSTOMER has gained each customer’s current email and phone for the support team, joined from the latest customer row, so its history still holds neither. About 20 of the 212 have a reason to: support leads who call customers back, and the delivery team that fixes wrong addresses.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan