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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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 Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.