powerbi-security-rls

powerbi-security-rls is a skill for Claude Code, Codex from santoshkanthety/powerbi-agent. It costs 71 tokens per session (1,294 once invoked), scanned A, original, MIT.

A Power BI security guide for controlling which data people can see. It covers row-level security, which filters rows for each user, plus object- and column-level access controls.

In plain words
What is it for?
Use it to design security roles, create fixed or user-based filters, handle manager hierarchies, and review permissions or data-governance settings.
Why use it?
It helps prevent users from viewing data outside their role, region, department, or other allowed scope. It also supports planning and testing access rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design security roles, create fixed or user-based filters, handle manager hierarchies, and review permissions or data-governance settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/santoshkanthety/powerbi-agent/powerbi-security-rls
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add santoshkanthety/powerbi-agent --skill powerbi-security-rls
Clone the repo
git clone --depth 1 https://github.com/santoshkanthety/powerbi-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for powerbi-security-rls

README.md
[![agentmods](https://agentmods.dev/badge/skills/santoshkanthety/powerbi-agent/powerbi-security-rls/github.svg)](https://agentmods.dev/skills/santoshkanthety/powerbi-agent/powerbi-security-rls)
Your own site
<a href="https://agentmods.dev/skills/santoshkanthety/powerbi-agent/powerbi-security-rls"><img src="https://agentmods.dev/badge/skills/santoshkanthety/powerbi-agent/powerbi-security-rls/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for powerbi-security-rls

Your own site · 80×15
<a href="https://agentmods.dev/skills/santoshkanthety/powerbi-agent/powerbi-security-rls"><img src="https://agentmods.dev/badge/skills/santoshkanthety/powerbi-agent/powerbi-security-rls.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,294 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.01294
Opus 5 $0.00036 $0.00647
Sonnet 5 $0.00014 $0.00259
Haiku 4.5 $0.00007 $0.00129

Measured 11d ago against content hash 84dd2a23467a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

powerbi-security-rls scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/powerbi-security-rls/SKILL.md · 148 lines

How it starts

The opening of the file, as written. The whole thing — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Power BI Security — RLS, OLS, and Fabric Access Control

Trigger

Activate when the user mentions: RLS, row-level security, OLS, object-level security, column security, roles, security filter, USERPRINCIPALNAME, USERNAME, dynamic security, static security, permissions, access control, data governance, sensitivity labels, workspace roles

What You Know

You have implemented RLS for enterprises with 10,000+ users, complex organizational hierarchies, and regulatory compliance requirements (GDPR, HIPAA, SOX). You know every RLS pattern, every edge case, and how to test it properly.

RLS Design Patterns

Pattern 1: Static Role-Based (Simple)

Best for: Fixed groups (Region, Department) with < 20 roles

-- Role: "EMEA Sales Manager"
-- DAX filter on dim_geography:
[Region] = "EMEA"

Pattern 2: Dynamic User-Based (Recommended for Scale)

Best for: 10s–1000s of unique access profiles

-- Create a security mapping table: UserAccess(email, allowed_region)
-- RLS filter on dim_geography:
[Region] IN
    CALCULATETABLE(
        VALUES(UserAccess[allowed_region]),
        UserAccess[email] = USERPRINCIPALNAME()
    )

Pattern 3: Manager Hierarchy (Self-Referencing)

Best for: "See your own + all your direct reports' data"

-- Assumes dim_employee has employee_id, manager_id, email
[employee_id] IN
    CALCULATETABLE(
        VALUES(dim_employee[employee_id]),
        PATHCONTAINS(
            PATH(dim_employee[employee_id], dim_employee[manager_id]),
            LOOKUPVALUE(dim_employee[employee_id], dim_employee[email], USERPRINCIPALNAME())
        )
    )

Pattern 4: Composite / Multi-Dimension Security

-- Users can see data where BOTH region AND product category match
VAR CurrentUser = USERPRINCIPALNAME()
VAR AllowedRegions =
    CALCULATETABLE(VALUES(UserAccess[region]), UserAccess[email] = CurrentUser)
VAR AllowedCategories =
    CALCULATETABLE(VALUES(UserAccess[category]), UserAccess[email] = CurrentUser)
RETURN
    [Region] IN AllowedRegions && [Category] IN AllowedCategories

Read the full file on GitHub · 148 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 148 lines · 0 tokens per session scan A 84dd2a23467a

Subscribe to this mod's changes

powerbi-security-rls is a skill published in the GitHub repository santoshkanthety/powerbi-agent (2 stars, last pushed 12d ago), licensed MIT. It adds 71 tokens to every session and 1,294 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

seshat-bi

Route a BI project through Seshat BI's governed seven-stage readiness flow. Use when a user asks to inspect a retail source, initialize a Seshat project, find the truthful next action, validate readiness evidence, or stop at the correct human approval gate.

Kemetra/Seshat-BI · 58 tokens

Data Retention Schedule Review

Use when reviewing a draft or existing data retention schedule to inventory data categories against stated purposes, collect retention-period facts, flag legal-hold interactions, and surface orphaned-data and vendor-coverage gaps for attorney review.

zgbrenner/agentcounsel · 49 tokens

powerbi-workflows

Route guarded Power BI work -- design, native report authoring, semantic-model operations, published queries, QA, bounded formatting, and PBIP adoption -- to the correct Seshat or official Microsoft surface under Seshat BI's gates.

Kemetra/Seshat-BI · 53 tokens

dbt-workflows

Route dbt intent to Seshat's governed shadow workflow or the official dbt Labs competence and execution owner, without bypassing readiness or evidence.

Kemetra/Seshat-BI · 35 tokens

dagster-workflows

Route Dagster intent to Seshat's governed medallion workflow or the official Dagster competence owner without bypassing readiness, approvals, or evidence.

Kemetra/Seshat-BI · 36 tokens

pbi-mcp-doctor

Use when a user asks whether or how to wire Microsoft's official Power BI MCP servers into a Seshat BI workspace: run the read-only environment doctor, map a task to the governed Power BI surface (including the official report-authoring skill), generate a safe read-only config template, or run the mocked read-only…

Kemetra/Seshat-BI · 73 tokens