Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I generated a authorization token via postman.
Then I used this token while calling the groups Rest API: (https://api.powerbi.com/v1.0/myorg/groups)
But the https://api.powerbi.com/v1.0/myorg/groups Rest API call just returns one row. However there are dozens of groups/workspaces in the Power BI environment. What may be the cause of the issue?
Thanks
Solved! Go to Solution.
Hi @innocence84 ,
You can refer the following links to grant the service principal access to the workspaces:
By Powershell:
Add-PowerBIWorkspaceUser (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Learn
Add-PowerBIWorkspaceUser -Scope Organization -Id 23FCBDBD-A979-45D8-B1C8-6D21E0F4BE50 -UserEmailAddress john@contoso.com -AccessRight Admin
Grant the access in Power BI Service:
Best Regards
Hi @innocence84 ,
As I tested in my side, it can return all workpaces which the account can access to.
Could you please tell me whether the account info used in the below screenshot be granted to all workspaces?
Best Regards
thanks,
I received the client_id and client_secret from Azure Active directory app registration.
You asked: "Could you please tell me whether the account info used in the below screenshot be granted to all workspaces?"
How can I grant the Azure Active Directory app registration for all workspaces?
Hi @innocence84 ,
You can refer the following links to grant the service principal access to the workspaces:
By Powershell:
Add-PowerBIWorkspaceUser (MicrosoftPowerBIMgmt.Workspaces) | Microsoft Learn
Add-PowerBIWorkspaceUser -Scope Organization -Id 23FCBDBD-A979-45D8-B1C8-6D21E0F4BE50 -UserEmailAddress john@contoso.com -AccessRight Admin
Grant the access in Power BI Service:
Best Regards
Hi again,
I checked Azure portal and Power BI admin portal. I could not find any settings that corresponds an app registration and a Power BI workspace.
Is there any configurating for granting access to a Power BI workspace for the given Azure Active Directory app registration? How should we model analysis like license consumption?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |