cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nagendray
Helper II
Helper II

Possible to move others my workspaces to capacity using powerbi rest api

Hi All,

I referred the below article

https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/groups-assign-my-workspace-to-capacity, it
is saying that we can move my workspace to capacity. Here my concern is i can move only my workspace to capacity or others my workspace also.

 

Thanks in advance

 

1 ACCEPTED SOLUTION
npergand
Helper I
Helper I

That specific API will assign only your my workspace to the capacity.

 

You can use this to assign a specific workspace to the capacity: https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/groups-assign-to-capacity

 

There is also an admin API can that can acomplish the same if you are an admin:

I believe this is the one: https://docs.microsoft.com/en-us/rest/api/power-bi/admin/capacities-assign-workspaces-to-capacity

 

The only caveat is that you will need to know the workspace ID.

View solution in original post

3 REPLIES 3
npergand
Helper I
Helper I

That specific API will assign only your my workspace to the capacity.

 

You can use this to assign a specific workspace to the capacity: https://docs.microsoft.com/en-us/rest/api/power-bi/capacities/groups-assign-to-capacity

 

There is also an admin API can that can acomplish the same if you are an admin:

I believe this is the one: https://docs.microsoft.com/en-us/rest/api/power-bi/admin/capacities-assign-workspaces-to-capacity

 

The only caveat is that you will need to know the workspace ID.

In order to run Power BI Rest API,Is it necessary to register application for power BI in azure portal.

Based on the documentation, yes:
https://docs.microsoft.com/en-us/rest/api/power-bi/#scopes

 

Although, I believe you can call them yourself using the "Try it" from the docs or powershell.

Different API's also may require different scopes or permissions.
Those are listed at the top of each API doc page.

 

This is a good walk through from Guy in a Cube: https://www.youtube.com/watch?v=fXbJeIY2CgE

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Solution Authors
Top Kudoed Authors