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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
bharathrs_nest
Frequent Visitor

Use Service principal with Sempy library and Get all the workspaces assigned to it

Hi, 

 

We cannot get access to all workspaces in production, but we need to collate all workspaces and datasets in it. We have tried sempy in fabric notebook, but it uses the token of the person who has logged in / created the pipeline. Is there a way to use Service principal in sempy via fabric notebook? 

1 ACCEPTED SOLUTION

Batch your requests accordingly. Manage/correct expectations. This is a slow process by design.

View solution in original post

3 REPLIES 3
bharathrs_nest
Frequent Visitor

Hi @lbendlin 

 

We have that SPN with tenant.readall permission set in Entra, the admin apis have a limitation of 50 requests per hour and we need to do a scan of more than 400+ workspaces.

Batch your requests accordingly. Manage/correct expectations. This is a slow process by design.

lbendlin
Super User
Super User

you need to be tenant admin/capacity admin, and need to use the admin apis.  Allowing a service principal to do that is an auditing nightmare.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors