web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Engage with the Community
Suggested Answer

Agentes de datos con Service Principal y RLS

(0) ShareShare
ReportReport
Posted on by
Hola. Tengo una aplicación en la que se manejan usuarios locales y muestra informes de Power BI incrustados desde un área de trabajo de Fabric. En mi aplicación se incrustan informes de Power BI usando un Service Principal. Los informes de Power BI tienen RLS, y mi aplicación genera el token de incrustación con el identity que se le asigna al usuario. Todo eso funciona bien. He creado un Data Agent en Fabric y lo he conectado al modelo semántico de uno de mis informes. Mi aplicación tiene un chat en los informes que se conecta al agente de datos y funciona bien siempre que el informe no tenga RLS. Pero cuando un informe tiene RLS, al hacerle una pregunta al agente de datos, me dice que no tiene permisos para acceder a los datos del informe.
 
Como debería resolver este problema? Hay alguna forma de generar el token de acceso de forma que el agente de datos le pase el RLS al modelo semántico? O alguna otra solución que me permita lo que quiero.
 
 
Saludos
I have the same question (0)
  • Suggested answer
    Assisted by AI
    Sunil Kumar Pashikanti Profile Picture
    2,277 Moderator on at
     
    You’re on the right track, your setup is correct. What you’re hitting is a current limitation with how Fabric handles identity in embedded scenarios.

    When you use a Service Principal, the embed token includes an EffectiveIdentity, which works perfectly for report rendering and RLS. However, Fabric Data Agents do not use that embed token. They run using a Microsoft Entra ID identity, so they don’t see the EffectiveIdentity you passed.

    Because of that, when RLS is enabled, the agent has no valid user context and returns a permission error.
     
    What you can do
    Create a separate dataset for the agent
    Pre-filter the data (for example per tenant) so RLS is no longer needed

    Use delegated user authentication (if possible)
    This allows the real user identity to flow, but usually only works for internal users

    Use alternative approaches
    Such as Power BI alerts or Power Automate if you’re trying to trigger actions from data
     
    Summary
    This isn’t an issue with your implementation. It’s a platform limitation. Data Agents currently cannot use the identity provided through a Service Principal embed token, so RLS cannot be applied in this scenario.
     
    ✅ If one of the responses here solved your issue, please mark it as Accepted so others facing the same problem can benefit as well.
    👍 If this or any other reply here helped you, feel free to give it a Like. It helps others and is always appreciated.

    Sunil Kumar Pashikanti, Moderator
    Blog: https://sunilpashikanti.com/posts/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Engage with the Community

#1
Vish WR Profile Picture

Vish WR 16

#2
furqan-ashraf Profile Picture

furqan-ashraf 14

#3
Kalathiya Profile Picture

Kalathiya 9 Super User 2026 Season 1

Last 30 days Overall leaderboard