Connection - SharePoint
The SharePoint Connection stores the address, sign-in and security settings that these Tasks and Triggers use to connect to Microsoft SharePoint, on an on-premises server or in SharePoint Online:
- SharePoint - Create list
- SharePoint - Delete list(s)
- SharePoint - Describe list
- SharePoint - Get list(s)
- SharePoint - Update list
- SharePoint - Add list item
- SharePoint - Update list item
- SharePoint - Delete list item(s)
- SharePoint - Get list item(s)
- SharePoint - Upload file(s)
- SharePoint - Download file(s)
- SharePoint - List file(s)
- SharePoint - Delete file(s)
- SharePoint - Create folder
- The Sharepoint file Trigger
The Client offers three types:
- Sharepoint: an on-premises server or SharePoint Online. Select the server with Sharepoint version
- Sharepoint Online: SharePoint Online in Microsoft 365
- Sharepoint 2010: the older on-premises editor. For an on-premises server, use the Sharepoint type with Sharepoint version "Sharepoint 2010/2013/2016" instead
Sharepoint type
Common settings

The Common settings tab is the same for every Connection type that has it; see Common settings.
Test asks the Server to sign in to the site in Address with the current settings.
Connection settings

Sharepoint version
- "Sharepoint Online": SharePoint Online
- "Sharepoint 2010/2013/2016": an on-premises SharePoint server
Address
The address of the SharePoint site, for example https://<tenant>.sharepoint.com/sites/<site> for SharePoint Online. Use the site address, not the address of the SharePoint admin center.
Authentication type
- "Default": with Sharepoint version "Sharepoint 2010/2013/2016", Windows authentication. When Username is the account that runs the Server, the Server's own credentials are used; otherwise Username and Password are used
- "Basic": user name and password
- "Form": forms-based sign-in with user name and password
- "Anonymous": no credentials
- "ADFS": Active Directory Federation Services, with Username, Password and the address in STS:
- AppOnly — App-only client credentials using an Azure AD-registered application. The Username field is the Client Id and the Password field is the Client Secret. Requires a Tenant Id.
- "Azure AD Application (Certificate)": a Microsoft Entra ID application that signs in with a certificate. Username is relabeled App ID. Needs a certificate and Tenant Id
"AppOnly" and "Azure AD Application (Certificate)" work only with Sharepoint version "Sharepoint Online". With "Sharepoint 2010/2013/2016" they do not sign in. With "Sharepoint Online", "Default", "Basic", "Form", "Anonymous" and "ADFS" send Username and Password as SharePoint Online user credentials.
Username and Password
The account that signs in. For "AppOnly", enter the client ID in Username and the client secret in Password. For "Azure AD Application (Certificate)", enter the application ID in App ID; Password is not used.
STS:
For "ADFS", the address of the ADFS Security Token Service.
Certificate
For "Azure AD Application (Certificate)", a VisualCron Certificate whose public key is uploaded to the certificates of the Microsoft Entra ID application.
Tenant Id
In the Azure shared settings group. For "AppOnly" and "Azure AD Application (Certificate)", the Directory (tenant) ID of your Microsoft 365 organization. It is on the Overview page of the application in Microsoft Entra ID.
Allowed SSL/TLS versions
The TLS versions that SharePoint Tasks may use. By default, SSL version 2, SSL version 3, TLS version 1, TLS version 1.1 and TLS version 1.2 are selected, and TLS version 1.3 is cleared. SSL version 2 has no effect. The same group is on the Sharepoint Online and Sharepoint 2010 editors.
When a certificate is selected in the Connection, SharePoint Tasks accept any server certificate. With the other authentication types, they accept any self-signed server certificate, whatever name it was issued to. In both cases they cannot tell the SharePoint server from another server that answers at the same address. Use the Connection only over a network path to the SharePoint server that you trust.
Each SharePoint Task run applies the Allowed SSL/TLS versions of its Connection to the whole Server process, not only to the SharePoint Task. It also changes how the Server process checks server certificates for its other HTTPS requests.
Sharepoint Online type
The Sharepoint Online type is for SharePoint Online in Microsoft 365.
Common settings

Test asks the Server to connect to the site in Address with the current settings.
Connection settings
Address
The address of the SharePoint site, for example https://<tenant>.sharepoint.com/sites/<site>. Use the site address, not the address of the SharePoint admin center.
Authentication type
"Basic" (default), "AppOnly" or "Certificate". "Basic" sends Username and Password as SharePoint Online user credentials; see the Basic Authentication paragraph below. "Certificate" signs in with a Microsoft Entra ID application and a certificate.

The Connection settings tab also has the Allowed SSL/TLS versions group, described for the Sharepoint type above.
To find the IDs for the Connection, sign in to Microsoft Entra, open App registrations, and open the application. Its Overview page shows the Application (client) ID and the Directory (tenant) ID.
Basic Authentication — Deprecated Microsoft has permanently disabled Basic Authentication across its services, including Exchange Online, SharePoint Online, and Microsoft Graph. Any connection configured to use Basic Authentication will fail with an authorization error and cannot be restored. Basic Authentication is disabled at the Microsoft platform level and is not configurable by VisualCron or your system administrator. Affected connections must be reconfigured to use a supported authentication type.
AppOnly (Client credentials)

Username
The Client Id of the Azure AD app registration.
Password
The Client Secret of the Azure AD app registration.
Tenant Id
The Azure AD Tenant ID (GUID) for your Microsoft 365 organization.
Certificate

Client id
The Application (client) ID of the Microsoft Entra ID application.
Tenant Id
The Directory (tenant) ID of your Microsoft 365 organization.
Certificate
A VisualCron Certificate whose public key (".cer" file) is uploaded under Certificates & secrets of the application.
You can use an existing or new Azure AD application to access your SharePoint Online sites. Please note that certificate-only credentials are accepted. Create an application on Azure AD and import the certificate to both the Azure AD application credentials and VisualCron. Only Certificate applications will be granted access to the SharePoint site; otherwise you will receive an HTTP 401 error.
Grant the application the SharePoint application permissions that the Tasks need, and grant admin consent. Each of these permissions applies to every site in the tenant, and Sites.FullControl.All, shown below, includes the others.
Setting up a certificate for SharePoint Online
These steps create a certificate, import it into VisualCron, upload it to Microsoft Entra ID and set up the Connection.
Create the certificate
To create a self-signed certificate and its files, complete the following steps:
-
Open Windows PowerShell as administrator.
-
Run this command to create the certificate. Replace
<certificate name>with a name for the certificate:$cert = New-SelfSignedCertificate `-Subject "CN=<certificate name>" `-CertStoreLocation "Cert:\CurrentUser\My" `-KeyExportPolicy Exportable `-KeySpec Signature `-KeyLength 2048 `-NotAfter (Get-Date).AddYears(3) `-FriendlyName "<certificate name>" -
Run this command to export the certificate with its private key as a ".pfx" file. Replace
<folder>with the folder to save the file in, and<file name>with a name for the file:Export-PfxCertificate -Cert $cert -FilePath "<folder>\<file name>.pfx" `-Password (Read-Host -AsSecureString "Enter password") -
Enter a password for the ".pfx" file when PowerShell prompts for it.
-
Run this command to export the public key as a ".cer" file, with the same
<folder>and<file name>:Export-Certificate -Cert $cert -FilePath "<folder>\<file name>.cer"
Both files are in the folder that you entered.
Set up the application and the Connection
To set up the application and the Connection, complete the following steps:
- In the Client, import the ".pfx" file as a Certificate. See Global - Certificates.
- Enter the password that you set during the export.
- In Microsoft Entra, open App registrations.
- Open your SharePoint application.
- On the Overview page, copy the Application (client) ID and the Directory (tenant) ID.
- Open Certificates & secrets -> Certificates.
- Click Upload certificate.
- Upload the ".cer" file.
- Open API permissions.
- Add the SharePoint application permissions that the Tasks need, for example Sites.Read.All, Sites.ReadWrite.All, Sites.Manage.All or Sites.FullControl.All.
- Grant admin consent.
- In the Client, open the Sharepoint Online Connection.
- On the Connection settings tab, enter the site address in Address.
- Select "Certificate" in Authentication type.
- Enter the application ID in Client id.
- Enter the tenant ID in Tenant Id.
- Select the imported Certificate.
- Click Test on the Common settings tab.
The test reports that it was successful.
Setting up a Secret for Sharepoint Online
To generate a Client Secret, navigate within the Microsoft Tenant to Certificates & Secrets > Client secrets and click New client secret. Set a description and expiry, then click Add. Copy the secret Value immediately — it will not be shown again.
To set API permissions, navigate to API Permissions and add the following SharePoint Application permissions:
Sites.FullControl.AllSites.Manage.AllSites.Read.AllSites.ReadWrite.All
Click Grant admin consent to apply the permissions.
Troubleshooting and Sources
More information about AppOnly and Certificates can be found here(with PowerShell script sample for generating a certificate).
Cannot contact web site 'https://xxx.sharepoint.com/' or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'
Allow access for Apps that don't use modern authentication.
