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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.