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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Premium capacity methods require caller to be capacity admin?

I need an authenticated user to be able to call these methods:

 

https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/getcapacities

https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/groups_assigntocapacity

 

We have a single capacity set up on which I am the capacity admin.

 

I have no problem calling the required APIs. However my colleague is having trouble. When he calls the get capacities method, he gets back an empty list. When calls the assign to capacity method using a workspace he owns, he gets a PowerBINotAuthorizedException error.

 

As far as I can see, the key difference is that I am a capacity admin and he is not. He is a service admin on the capacity, he has the assignment permission, and he has been assigned the Power BI Service Admin role in AAD. He is able to assign a workspace to the capacity using the portal.

 

Will these methods only work for capacity admins? If so, that seems like a big limitation. Especially since capacity admins can only be specified when a capcacity is being created and cannot be later updated. Perhaps I'm missing something?

1 REPLY 1
lbendlin
Super User
Super User

I think that is an intentional limitation. What is preventing you from adding that person to the capacity admin role?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.