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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
fabric1
New Member

Cannot connect Graph API to Power BI

Most of the APIs work in the Graph Explorer, others dont work because I dont have enough permissions. However, when I enter the same API url in Power BI it gives me "Access to the resource is forbidden" error. 
I am using https://graph.microsoft.com/v1.0/security/secureScores as an example, which works in Graph Explorer but not in Power BI

1 ACCEPTED SOLUTION
AmiraBedh
Super User
Super User

Based on this article, 2 main reasons for that error :

  • An expired or deleted API key.
  • Incorrect credentials.

 Open Power BI and go to the following section "File" → "Options and settings" → "Data source settings" : 

 

AmiraBedh_0-1722889984612.png

In "Data source settings", locate the problematic data source. Once you've found it, select it and click on "Edit Permissions".

 

AmiraBedh_1-1722890017430.png

You will then have the option of modifying the identification information using "Edit", where you can enter a new "Access Key" and "Secret Key". If the current keys are obsolete, this update is necessary. Alternatively, by deleting the data source with "Delete", you can create a new one if the keys cannot be recovered or if you prefer to start from scratch.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

1 REPLY 1
AmiraBedh
Super User
Super User

Based on this article, 2 main reasons for that error :

  • An expired or deleted API key.
  • Incorrect credentials.

 Open Power BI and go to the following section "File" → "Options and settings" → "Data source settings" : 

 

AmiraBedh_0-1722889984612.png

In "Data source settings", locate the problematic data source. Once you've found it, select it and click on "Edit Permissions".

 

AmiraBedh_1-1722890017430.png

You will then have the option of modifying the identification information using "Edit", where you can enter a new "Access Key" and "Secret Key". If the current keys are obsolete, this update is necessary. Alternatively, by deleting the data source with "Delete", you can create a new one if the keys cannot be recovered or if you prefer to start from scratch.


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.