Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
We are making changes to the existing power BI application in which we have placed username and password in the configuration file.
Now we want to use service principal.
I have followed the below steps
1) Created a client secret in the Azure portal.
2) Gave all the API permissions in the Azure
Workspace.ReadWrite.All
Workspace.Read.All
Capacity.ReadWrite.All
Capacity.Read.All
Dataset.Read.All
Dataset.ReadWrite.All
Report.ReadWrite.All
Report.Read.All
Tenant.Read.All
Tenant.ReadWrite.All
and granted admin consent.
Now when I try to call
client.Groups.GetGroupsWithHttpMessagesAsync().Result; this always returns 0 workspaces.
Please note that I'm able to get the workspaces using my username and password.
Please Help.
Solved! Go to Solution.
Fixed it By manually adding the service principal to the workspace in the assign users section in power bi
Fixed it By manually adding the service principal to the workspace in the assign users section in power bi
Please note that I'm able to get workspaces using power bi rest api.
https://docs.microsoft.com/en-us/rest/api/power-bi/groups/get-groups#code-try-0
using Service Principal not able to the list of workspaces.
Please help
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.