Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
HowardTaylor
Microsoft Employee
Microsoft Employee

Dynamic Object-Level Security (OLS)

Is anyone implementing a dynamic approach for maintaining Object-Level Security (OLS) in Power BI where OLS definitions can stay aligned with source-system RBAC (for example, a data platform or warehouse entitlement model)?

Specifically, I’m curious what patterns people have used for automating OLS updates—such as TMDL, XMLA with TOM/TMSL or Tabular Editor, or triggering model updates through pipelines or CI/CD workflows—to keep security metadata in sync without manual edits.

1 REPLY 1
v-echaithra
Community Support
Community Support

Hi @HowardTaylor ,

Thank you for reaching out to Microsoft Communtiy.

Like row-level security (RLS), OLS is also defined within model roles. Currently, you can't create OLS definitions natively in Power BI Desktop. To create roles on Power BI Desktop semantic models, use external tools such as Tabular Editor.

Common patterns include:

XMLA automation (Premium / PPU): Using the XMLA endpoint with TOM/TMSL to programmatically create or update roles and OLS definitions based on external entitlement data.

Tabular Editor scripting: Generating OLS metadata from a source system (DB/JSON/Git) and deploying it via Tabular Editor (desktop or CLI).

CI/CD pipelines: Integrating OLS updates into Azure DevOps or GitHub Actions pipelines, typically triggered by entitlement changes or scheduled deployments.

TMDL / model as code: Managing roles and OLS in TMDL and redeploying the model when RBAC metadata changes.

In all cases, the “dynamic” behavior comes from automated redeployment of security metadata, not dynamic evaluation at query time. This is the standard, supported approach customers use today to keep Power BI OLS in sync with source-system RBAC.

Regards,
Chaithra E.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.