SpinTheMic
Pro

Interview practice question

Row-level security for a management hierarchy

Data Analyst · Power BI and Tableau · Experienced

Managers should see data for everyone who reports to them, directly or indirectly, through an organisation hierarchy that changes often. How do you implement this?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Employee table with manager ID.
  • PATH() to flatten hierarchy.
  • RLS: PATHCONTAINS(path, current user's employee ID).
  • Lookup user ID by email.
  • Keep HR data refreshed; test.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics