Forum Discussion
Anonymous
2 years agoNot applicable
Failed to automate the PowerShell script using service principal
Hello All, Daily I want to automate the Powershell script for extracting Power BI tiles in all Dashboards using service principal. After running i am getting the below error. Can anyone please he...
- 2 years ago
Hi Anonymous
Most likely you are missing the -Scope Organization to access to all dashboards as Admin.
ibarrau
Super User
2 years agoHi. There are different steps we can validate for this. I think most of them are explained in the replies of this recent post: https://community.fabric.microsoft.com/t5/Service/Recieving-403-Forbidden-when-Accessing-Dataset-via-API/m-p/3526068#M211213
The only difference with your scenario is that the permissions involved are related to dashboards. Like: "Dashboard.ReadWrite.All and Dashboard.Read.All"
I hope that helps, if you can doubts please feel free to ask again and we can discuss reply by reply of the other post.