Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
ICS to SharePoint Online REST API — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

ICS to SharePoint Online REST API

Accepted answer
28
Views
6
Comments
edited Apr 22, 2021 7:38AM in Integration 6 comments

Summary

Creating a REST connection from OIC to SharePoint Online

Content

Hi Experts,

I am creating a REST connection in OIC to access using SharePoint Online REST API. Please find the connection details in the attached document.

The Access Token request which we are using is as below :

-X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'grant_type=client_credentials&client_id= [email protected]_ID&client_secret= CLIENT_SECRET&resource=OBJECT_ID /our_ogranization.sharepoint.com/@TenantID'; https://accounts.accesscontrol.windows.net/tokens/OAuth/2

The connection is failing with the below error:

Unable to test connection REST_API.
  • CASDK-0004: Failed to authenticate against the application with the credentials provided; Invalid token usage. Can be used either in headers or in query params

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!