ICS to SharePoint Online REST API
SummaryCreating a REST connection from OIC to SharePoint Online
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:
- 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