Configure Content Management Interoperability Services (CMIS) In SharePoint 2016

In this article, I will answer the below CMIS questions

  • What’s The CMIS?
  • What’s the SharePoint CMIS Procedure?
  • How to configure CMIS Procedure in SharePoint 2016?

What’s The CMIS?

CMIS stands for Content Management Interoperability Services. It’s a web service standard that allows different content management systems to inter-operate seamlessly over the Internet.


What’s The SharePoint CMIS Procedure?

The Content Management Interoperability Services (CMIS) Producer is a SharePoint feature that allows the applications to interact with SharePoint lists and document libraries programmatically by using the interfaces that are defined in the CMIS standard.

Note:

  • CMIS is turned off by default on all on-premises sites.
  • CMIS is available after the Content Management Interoperability Services (CMIS) Producer feature is activated.
  • CMIS is not supported in SharePoint Online.

How to configure CMIS Procedure in SharePoint 2016?

To configure CMIS in SharePoint 2016, you should do the following:

  1. Enable Basic Authentication for the SharePoint Web Application.
  2. Activate Content Management Interoperability Services Producer Feature on the site.
  3. Test CMIS.

Enable Basic Authentication for the SharePoint Web Application

To avoid the Unauthorized exception, you should first enable Basic Authentication for the web application as the following:

  • Open Central Administration > Application Management > Manage web application.
  • Click on your web application >  from the above ribbon, Click on Authentication Provider.
  • Click on Default > at IIS Authentication Settings > Check Basic authentication (credentials are sent in clear text)

Enable Basic authentication in SharePoint 2016

Activate Content Management Interoperability Services Producer Feature

  • Open your site > Site Settings > Site Actions > Manage Site Features.
  • Search For Content Management Interoperability Services Producer Feature.
  • Click on Activate.

Activate CMIS Feature in SharePoint 2016

Test CMIS

You can test the CMIS via the browser or the Postman tool as the following.

  • Open the Google Chrome > At Extension Search for Postman extension.
  • Add it > then login with the Google account.
  • Add the CMIS Rest Service URL "http://your site URL/_vti_bin/cmis/rest?getRepositoryInfo"
  • Set the Authorization type to basic > set the username and password.
  • Click on Send, to see the response.

Test CMIS in SharePoint 2016

Get Documents from Document Library via CMIS

You can use CMIS Rest Service to get the repository info from SharePoint Document Library as the below:


http://SiteURL/_vti_bin/cmis/rest/%5Brepositoryid%5D?getRepositoryInfo

Where [repositoryid] is the GUID of the document library.

getrepositories in SharePoint 2016 Doc Library via CMIS

Note: To get the GUID of Document Library via PowerShell

PS C:\Users\spfarm> $web = Get-SPWeb http://SiteURL<span 				data-mce-type="bookmark" 				id="mce_SELREST_start" 				data-mce-style="overflow:hidden;line-height:0" 				style="overflow:hidden;line-height:0" 			></span>/
PS C:\Users\spfarm> $lib = $web.lists | Where-Object {$_.title -eq "CMIS Lib"}
PS C:\Users\spfarm> $lib.id

Guid
----
f2d54d2f-7347-430e-88fa-7ebd2a4ca319

PS C:\Users\spfarm>

The final URL should look like


http://siteURL/_vti_bin/cmis/rest/f2d54d2f-7347-430e-88fa-7ebd2a4ca319?getrepositories


Applies To
  • SharePoint 2016.
  • SharePoint 2013.
Conclusion

In this article, I have explained

How to configure CMIS for SharePoint 2016.

See Also

See my answer at StackExchange: How to connect to sharepoint on-prem 2013 using CMIS

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s