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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power BI API: How to obtain token for https://wabi-west-us-redirect.analysis.windows.net/metadata/ga

Im trying to obtain token "https://wabi-west-us-redirect.analysis.windows.net/metadata/gallery/SharedDatasets" which I got from

Inspect through APIs. I tried getting token from "https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token" having permissions for Tenant.Read.All. Could anyone help me in the part which I am missing? 

Thanks!

 

 

c2craymond_0-1666243619686.png

c2craymond_2-1666244078469.png

3 REPLIES 3
Anonymous
Not applicable

Hi,

 

Have you found the solution how to get token for

metadata/gallery/SharedDatasets endpoints?
 
Thanks
Anonymous
Not applicable

I am able to obtain token for other APIs. But for "https://wabi-west-us-redirect.analysis.windows.net/metadata/gallery/SharedDatasets", it throws a 401 Unauthorised error.

v-shex-msft
Community Support
Community Support

HI @Anonymous,

Perhaps you can take a look at the following link to know how to get the access tokens from the rest API:

Solved: REST API Get Access Token - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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