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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors