In today’s digital landscape, businesses rely on a variety of platforms to drive collaboration, data accessibility, and streamline processes. Microsoft SharePoint has emerged as a popular choice for document management and team collaboration, and integrating it with SAP Cloud Platform Integration (CPI) can unlock powerful synergies. Through this integration, both SAP and non-SAP systems can securely interact with SharePoint for document storage, retrieval, and seamless collaboration.
SAP BTP Integration Suite comes with standard Microsoft SharePoint adapter that uses Graph API to communicate with SharePoint to perform various activities such as upload, delete , read , copy and generate sharable link to name a few.
This three-part blog series will guide us through the essential steps for SAP CPI and SharePoint integration:
In this first Blog post, we’ll lay the groundwork by establishing connectivity. You’ll learn to configure permissions in Azure Active Directory (AD) and Create Application to use graph API, set up OAuth 2.0 Authorization Code in SAP CPI security materials, and test the connection, ensuring that CPI and SharePoint can securely communicate.
Prerequisites
Validate User and License details.
When connecting to SharePoint with OAuth2, you need to have an organizational directory/tenant in Microsoft Azure Active Directory and a user in this directory with user type "Member" which has a subscription to SharePoint.
Determine Redirect URI
Use the BTP Integration Suite tenant <host name> to construct the following redirect URI:
https://<host name>/itspaces/odata/api/v1/OAuthTokenFromCode
For Ex :
https://<clientid>.integrationsuite.cfapps.<region>.hana.ondemand.com/itspaces/odata/api/v1/OAuthTok...
Register a New Application in Azure AD
Step 1: Set Up SharePoint Permissions in Azure Active Directory (AD)
Step 2 : Configure API Permissions
Click Add a permission > Microsoft Graph > Application permissions. Select Delegated Permissions and Under Sites, select "Sites.ReadWrite.All" to allow full access to SharePoint files. Confirm permissions by adding the permission to the application.
Select the three dots in the entry with the created credential and choose the "Authorize" option shown above. A confirmation dialog will come up. Select "Continue":
In this post, we successfully established secure connectivity between SAP CPI and Microsoft SharePoint by configuring permissions in Azure Active Directory and setting up OAuth 2.0 credentials in CPI. With this foundation, CPI can now securely authenticate with SharePoint, paving the way for seamless file interactions.
In our next post, we’ll build on this connection by creating an HTTP endpoint and exposing it through API Management (APIM), enabling boundary applications to upload files directly to SharePoint. Stay tuned for Part 2, where we’ll dive into API creation and management to further enhance our CPI-SharePoint integration.
Resources referred when writing the blog
https://help.sap.com/docs/integration-suite/sap-integration-suite/microsoft-sharepoint-adapter
Connect to Microsoft 365 Mail with OAuth2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |