I have created a provider-hosted add-in on SharePoint 2019 on prem. I want to access my provider hosted add-in data from postman.

I have successfully setup postman to authenticate in SharePoint, as shown below.

enter image description here

But when I try to access into my add-in, error 401 occurs. I have hosted my add-in in local iis. I am not allowed to use basic auth.

enter image description here

My request headers:

enter image description here


  • On IIS → On your hosted site → Authentication → you will see the various authentication modes, what is the value Anonymous Authentication mode ? if it is disabled then you should enabled it Nov 14, 2022 at 10:58
  • Yes I have enable anonymous Authentication in IIS, but still cannot get authenticated Nov 14, 2022 at 12:02
  • What about the user that running Post man, is he granted the appropriate role ? Nov 14, 2022 at 12:17
  • Another question, is your add-in registered in SharePoint ? Nov 14, 2022 at 12:20
  • Yes my add-in is registered in SharePoint and i can access it via sharepoint, but i need to access my add-in api via sharepoint spfx web part. Yes I am running postman with the same user I am admin in SP Nov 14, 2022 at 12:39


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.