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
MarkGetmoreSys
New Member

API is not accessible for application

I have generated token using code

string authorityUriToken = "https://login.microsoftonline.com/{tenantid}";
AuthenticationContext authContextToken = new AuthenticationContext(authorityUriToken);

AuthenticationResult token = authContextToken.AcquireTokenAsync(resourceUri,client).Result;

 

Using that token get dahsboard list with embdede url

System.Net.WebRequest request = System.Net.WebRequest.Create(String.Format("{0}groups/{1}/dashboards", baseUri, _objPowerBIWorkspace.WorkspaceID)) as System.Net.HttpWebRequest;

request.Method = "GET";
request.ContentLength = 0;ViewBag.Token = Token;
request.Headers.Add("Authorization", String.Format("Bearer {0}", Token));var response = request.GetResponse() as System.Net.HttpWebResponse;

 

But when i have try to get see dashboard reports it return error

MarkGetmoreSys_0-1673347190103.png

 

When check in network calls, found below url with 403 status code

Request Call

https://wabi-west-europe-d-primary-redirect.analysis.windows.net/metadata/embed/dashboard/491ced24-1...

 

Resposne

{"Message":"API is not accessible for application"}

 

API access already given

 

MarkGetmoreSys_1-1673347630975.png

 

Please help

 

3 REPLIES 3
lbendlin
Super User
Super User

Please read about the difference between "dashboard"  and "report"  in the context of Power BI.

I have checked that one. My workspace having dahsboard and reports. I was showing dashbaord in my application. But after enabling 2FA it is not showing in application. 

 

Any suggestion

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.