Connecting to SharePoint using REST API and Swagger File | Community
Skip to main content
Nina_Carty
Level 3
March 31, 2022

Connecting to SharePoint using REST API and Swagger File

  • March 31, 2022
  • 2 replies
  • 1373 views

We are attempting to connect to SharePoint using a swagger file and the REST API. We have been able to authenticate using OAuth 2.0 but are hitting a roadblock when trying to test any services contained in the swagger file. We recently were able to do this with ServiceNow and are hoping to do the same thing with SharePoint.

 

The redirect_uris match and the application has been given full control in SharePoint.

 

Thank you.

 

@workflowuser 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Nina_Carty
Level 3
March 31, 2022

The error in AEM is:

"errorMessage": "com.adobe.aemfd.dermis.authentication.exception.AuthenticationException: AADSTS70000: Provided grant is invalid or malformed.

 

The error in Postman is:

"odata.error": {
        "code""-2147024891, System.UnauthorizedAccessException",
        "message": {
            "lang""en-US",
            "value""Attempted to perform an unauthorized operation."
        }
    }
Mayank_Gandhi
Adobe Employee
Adobe Employee
April 4, 2022