Scenario I have a SharePoint site collection which has multiple authentication schemes (say Windows NTLM, Azure AD, Okta, ADFS or any other 3rd party Identity provider) on same URL. Now when I try to connect to that site using CSOM, I will get below 403 forbidden error from SharePoint: The remote server returned an error: … Continue reading SharePoint 2013/2016/2019: Use CSOM in SharePoint Site with multiple authentication schemes
Category: sharepoint 2013
Working with TypeScript & SharePoint 2013
Skip the blog and jump to code here I am about to develop a new application on SharePoint 2013 and for a while I have not worked on 2013 platform. The application will essentially have a bunch of client side web-parts using Content Editor Webpart of SharePoint 2013. I have been working on Typescript with … Continue reading Working with TypeScript & SharePoint 2013
SharePoint Online Set a site collection as Read Only
There are many different business scenarios when we want to set a SharePoint site collection as read-only mode (as shown in above screenshot) to prevent any further addition/modification of content but simultaneously to make the existing content available to the users. Using SharePoint Online Management Shell Set-SPOSite -Identity "<SiteURL>" -LockState "ReadOnly" Read more about other … Continue reading SharePoint Online Set a site collection as Read Only
Make your SharePoint sites responsive without custom master page
One of the common things in most of the applications build on SharePoint is to have a custom master page. The custom master page is build mainly to apply the branding of the company/ product and to have a good responsive design.But since the formation of PnP community and SharePoint 2016 announcement things are going to … Continue reading Make your SharePoint sites responsive without custom master page
Console application for SAML authenticated SharePoint 2013 sites
One of the trickiest thing I came across last couple of days is to run my console application using CSOM to connect to a SAML Authenticated SharePoint site. In my case the authentication provider was CA SiteMinder. There are many techniques to connect to SAML authenticated sites using CSOM. Below are some of them which … Continue reading Console application for SAML authenticated SharePoint 2013 sites
Limitation of OOTB “E-mail Users” functionality in SharePoint group- Too many e-mail addresses were selected
SharePoint provides OOTB functionality to email selected users from any SharePoint Group. You can go to any SharePoint group and select the users and click Actions -- > Email Users. Limitation: The email users functionality will not work , if you select large number of users .It will show a message "Too many e-mail addresses … Continue reading Limitation of OOTB “E-mail Users” functionality in SharePoint group- Too many e-mail addresses were selected
SharePoint 2013 – Update/Clear Taxonomy Field Value using C# CSOM
This post will detail you with sample code snippet to update and clear value of a taxonomy field of a list item. Update value to Taxonomy Field: public void UpdateTaxonomyField(ClientContext ctx, List list,ListItem listItem,string fieldName,string fieldValue) { Field field = list.Fields.GetByInternalNameOrTitle(fieldName); TaxonomyField txField = clientContext.CastTo<TaxonomyField>(field); TaxonomyFieldValue termValue = new TaxonomyFieldValue(); string[] term = fieldValue.Split('|'); termValue.Label = term[0]; termValue.TermGuid … Continue reading SharePoint 2013 – Update/Clear Taxonomy Field Value using C# CSOM
Change Permission of a SharePoint Group using Javascript CSOM
Everything (ideal scenario) in SharePoint is now an App. SharePoint hosted Apps uses JavaScript Object Model (JSOM).So now developers have to code more on JavaScript and learn more about doing even administrative tasks using JavaScript. In this blog i will detail one such administration task- Changing the permission of any SharePoint group. Below is a sample code … Continue reading Change Permission of a SharePoint Group using Javascript CSOM
Custom Date time refiner template for SharePoint 2013
SharePoint 2013 OOTB display options for DateTime refiners are very limited. By default there are four display options available for DateTime refiners: But these refinement options are often not suitable as the range for each refinement value is too big and there is no option to refine the results between 2 specific dates. So let's see how we … Continue reading Custom Date time refiner template for SharePoint 2013