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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.