ICS to SharePoint Online REST API
Summary
Creating a REST connection from OIC to SharePoint OnlineContent
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
Tagged:
1