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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

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