none
REST API Authentication In POSTMAN - SharePoint Online RRS feed

  • Question

  • I am trying to authenticate with the REST API for a list in SharePoint Online using POSTMAN.

    For example, the URL for my site looks something like this:

    https://mytenantname.sharepoint.com/sites/mysitecollection/_api/web/lists

    When I go to the URL for the REST API in browser I can access it fine using my SharePoint Online credentials. I log in and it returns the list of lists in JSON.

    When I try to use a GET in POSTMAN it fails with "Access Denied" or it shows the following error:

    {"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."}

    Which Authorization type should I be selecting in POSTMAN to authenticate correctly with SharePoint Online?

    Thanks in Advance

    Sunday, October 28, 2018 10:26 PM

All replies