Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

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= CLIENT_ID@TENANT_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!