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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more

Reply
Ehab-H
Frequent Visitor

Help with GraphAPI - CSP listTenants

Hi

I am creating a report to pull data from our client's tenants licenses usage, and with the help of this article, I was able to accomplish the initial task.

The challenge here is that we have to embed the client domain in the parameter, which can cause productivity delays since our team would like to cycle through the tenants or get a full list easily.

However, when attempting to run ListTenants ,I get (We couldn't authenticate with the credentials provided, Please try again.)

I am using anonymous authentication, and my Azure App registration seems to be working fine. (At least, I think so).

When testing the graph in explorer, it works fine, and the permissions are within the app as well.

What am I doing wrong? Where should I start looking?

Thanks in advance.

Screenshot_2.png

 

 

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @Ehab-H ,

 

Please check the credentials you provided are correct and don't expire.

 

If still doesn't work, maybe you can try to use another way to authenticate.

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

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.