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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.