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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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