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

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

Reply
PowerTotheDevs
New Member

Power bi REST API - SP not working

Hi there,

 

I want to use this REST API endpoint:
Items - List Paginated Reports - REST API (PaginatedReport) | Microsoft Learn

I'm using a service principal (app_registration), and i get the correct token and got the right permissions. I can call other power bi rest API's and those works (with the service principal ) - but not the paginated reports ones.

 

Things i did:

- Power bi admin settings > developer FABRIC service principals turned on

- Service principal itself + the AAD group assigned to the workspace.

- Assigned the delegated permissions - Workspace.Read.All or Workspace.ReadWrite.All


Getting error in my request 400:

"errorCode":"PrincipalTypeNotSupported","message":"The operation is not supported for the principal type"

 

This while the docs are saying: service principal are supported.

 

Other things i tried:

- assigned premium capacity (fabric f1 and f2) - but still getting a 400 with the error description.

- when i use a PPU user account (instead of service principal) it works and i'm getting a 200 OK

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @PowerTotheDevs,

What type of service principal are you worked? The default 'client secret' or attached other type of 'certificates' files and invoke based on service principal? Please share some more detail information about this issue amd they should help us clarify your scenario and test to troubleshoot.

How to Get Your Question Answered Quickly  

Regads,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
PowerTotheDevs
New Member

Thank you for your answer!

Still a bit strange, then i would need to use a user-based auth in my pipelines, with MFA...

I think it should be possible, because for embedded purposes its also possible.

rohit1991
Super User
Super User

Hi @PowerTotheDevsThe issue occurs because the Power BI REST API does not fully support Service Principals for paginated report endpoints, despite what the documentation states. The error "PrincipalTypeNotSupported" suggests that the API requires user-based authentication (delegated permissions) instead of a Service Principal. Your test with a PPU user account working confirms this limitation. Even though you assigned the correct permissions (Workspace.Read.All, Workspace.ReadWrite.All), paginated reports require user-based authentication. To resolve this, try using a user account with delegated permissions instead of a Service Principal, or check if Microsoft has updated API support for this scenario.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.