How to activate and use CMIS for a SharePoint 2013 Server?
-
10-12-2019 - |
Question
I want to sync my SharePoint files to my desktop using CmisSync.
To do this, I need to activate the CMIS protocol on SharePoint.
So, how to access documents stored inside SharePoint Server 2013 from outside, via CMIS?
Solution
Step 1: Make SharePoint accessible from outside (if not already)
On the server, start a powershell window and type the following commands:
Add-PSSnapin Microsoft.Sharepoint.Powershell
Get-SPWebApplication -IncludeCentralAdministration
Take note of the URL at the SharePoint Central Administ...
line, then open it in a web browser.
An administration web interface appears. Click on Application Management
then Alternate Access Mappings
then Edit Public URLs
.
In Alternate Access Mapping Collection
select the site you want to access, probably something like SharePoint - 80
. In Public URLs
set Default
to the URL you must use to access the server, which is probably http://
or https://
plus the server name you would use to ping the server from a client machine.
Step 2: Enable Basic Authentication (if needed)
(If you want to access via NTLM/SSO, skip this step)
Return to the main page of the SharePoint Central Administration tool. Click on Security
, then in the General Security
section click on Specify authentication providers
, then on Default
.
In this page, set Basic Authentication
to checked.
Note: To stay secure, make sure you use HTTPS.
Step 3: Activate CMIS for your site
Log into the web interface of your site, click the gear icon in the upper-right, click on Site settings
, then in the Site Actions
section click on Manage site features
. In the list that appears, activate the Content Management Interoperability Services (CMIS) Producer
item:
Step 4: Use CMIS
In your CMIS client (for instance CMIS Workbench), use the following URL:
http://yourserver/_vti_bin/cmis/rest?getRepositories
(or http://yourserver/_vti_bin/cmissoapwsdl.aspx
if using Web Services)
and your SharePoint username/password.