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

RestAPI returns 401

I can log to the web UI with http://..../Reports authenticating with my AD creds.

 

However If I try to run this on postman (Using basic auth with my ad creds) it returns 401. Is there something I need to enable or set in order to use the api?

http://..../Reports/api/v2.0

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

What do you see in the www-authenticate header of the 401 reply in postman? If you see NTLM I think this means that you have WindowsAuth configured for your server and it's basically telling you that the basic auth was rejected and it wants you to use NTLM.

 

Postman has beta support for NTLM auth, I was able to use this to put in my username/password and get a valid response.

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User

What do you see in the www-authenticate header of the 401 reply in postman? If you see NTLM I think this means that you have WindowsAuth configured for your server and it's basically telling you that the basic auth was rejected and it wants you to use NTLM.

 

Postman has beta support for NTLM auth, I was able to use this to put in my username/password and get a valid response.

Anonymous
Not applicable

You were completely right. Appreciate it!

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.