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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Dbroomfield
New Member

Power BI Rest API with Service Account

Hi All,

I am trying to run the executeQueries Power BI Rest API but am running into issues. The API requires a Bearer token to be passed in, and I have found some guides on how to get these Bearer Tokens via a Service Principle. However, the dataset I am trying to query has Row Level Security enabled, which means I cannot use the Bearer Token I retrieved using a Service Principle to run my query as it is one of the limitations listed in the executeQueries guide I linked above. Any Ideo how I resolve this? I would like to use a Service account instead of a Service Principle to fetch a Bearer Token but I can't seem to find out how to retrieve one of these bearer tokens for an account instead of a Service Principle.

 

1 REPLY 1
lbendlin
Super User
Super User

You will have problems with the Service Account too unless it is included in the RLS roles.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 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.