## 5.3 Configure Access from SAP BTP
Create a destination configuration in the SAP BTP cockpit using either OAuth2ClientCredentials or OAuth2Password authentication.
## Microsoft SharePoint
## With OAuth2ClientCredentials Authentication
1. Open the SAP BTP cockpit.
2. Go to the subaccount where you've subscribed to Joule, choose Connectivity Destinations , and create a new destination with the following information:
3. In the Additional Properties section, enter the following information:
4. Save your entries.
5. Choose Check Connection to check whether the basic configuration is working.
| Field             | Value                                                                                                                                                                                                       |
|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Name              | <NAME_OF_DESTINATION>                                                                                                                                                                                       |
| Type              | HTTP                                                                                                                                                                                                        |
| URL               | https://<SHAREPOINT_DOMAIN>/sites/ <ID_OF_SHAREPOINT_SITE>                                                                                                                                                  |
| Proxy Type        | Internet                                                                                                                                                                                                    |
| Authentication    | OAuth2ClientCredentials                                                                                                                                                                                     |
| Client ID         | Microsoft Entra ID Application credentials                                                                                                                                                                  |
| Client Secret     | Microsoft Entra ID Application credentials                                                                                                                                                                  |
| Token Service URL | https://login.microsoft.com/ <TENANT_ID>/oauth2/v2.0/token (or https://login.microsoftonline.com/ <TENANT_ID>/oauth2/v2.0/token ), where <TENANT_ID> is the tenant ID of the Microsoft Entra ID Application |
| Field   | Value                                |
|---------|--------------------------------------|
| scope   | https://graph.microsoft.com/.default |
## Destination Configuration Sample ( OAuth2ClientCredentials authentication)
Name=&lt;NAME\_OF\_DESTINATION&gt;
Description=SharePoint Access (On-behalf of technical user)
Type=HTTP
ProxyType=Internet
Authentication=OAuth2ClientCredentials
clientId=&lt;CLIENT\_ID&gt;
clientSecret=&lt;CLIENT\_SECRET&gt;
tokenServiceURL=https\://login.microsoft.com/&lt;TENANT\_ID&gt;/oauth2/v2.0/token tokenServiceURLType=Dedicated
scope=https\://graph.microsoft.com/.default
URL=https\://&lt;SHAREPOINT\_DOMAIN&gt;/sites/&lt;ID\_OF\_SHAREPOINT\_SITE&gt;
## With OAuth2Password Authentication
1. Open the SAP BTP cockpit.
2. Go to the subaccount where you've subscribed to Joule, choose Connectivity Destinations , and create a new destination with the following information:
3. In the Additional Properties section, enter the following information:
| Field             | Value                                                                                                                                                                                                       |
|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Name              | <NAME_OF_DESTINATION>                                                                                                                                                                                       |
| Type              | HTTP                                                                                                                                                                                                        |
| URL               | https://graph.microsoft.com                                                                                                                                                                                 |
| Proxy Type        | Internet                                                                                                                                                                                                    |
| Authentication    | OAuth2Password                                                                                                                                                                                              |
| User              | The technical user that you've created in Microsoft Entra ID                                                                                                                                                |
| Password          | The password that you've created in Microsoft Entra ID                                                                                                                                                      |
| Client ID         | Microsoft Entra ID Application credentials                                                                                                                                                                  |
| Client Secret     | Microsoft Entra ID Application credentials                                                                                                                                                                  |
| Token Service URL | https://login.microsoft.com/ <TENANT_ID>/oauth2/v2.0/token (or https://login.microsoftonline.com/ <TENANT_ID>/oauth2/v2.0/token ), where <TENANT_ID> is the tenant ID of the Microsoft Entra ID Application |
| Field   | Value                                |
|---------|--------------------------------------|
| scope   | https://graph.microsoft.com/.default |
4. Save your entries.
5. Choose Check Connection to check whether the basic configuration is working.
## Destination Configuration Sample ( OAuth2Password authentication)
```
Name=<NAME_OF_DESTINATION> Description=SharePoint Access (On-behalf of technical user) Type=HTTP ProxyType=Internet Authentication=OAuth2Password clientId=<CLIENT_ID> clientSecret=<CLIENT_SECRET> User=<USERNAME> Password=<PASSWORD> tokenServiceURL=https\://login.microsoft.com/<TENANT_ID>/oauth2/v2.0/token tokenServiceURLType=Dedicated scope=https\://graph.microsoft.com/.default URL=https\://graph.microsoft.com
```
## SAP Build Work Zone
To create a destination configuration in the SAP BTP cockpit for the integration of SAP Build Work Zone, advanced edition with document grounding, follow step 3 as described in Integration With Document Grounding.